You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by tirthmehta1994 <gi...@git.apache.org> on 2018/10/23 16:56:09 UTC

[GitHub] lucene-solr pull request #483: Log Delete Query Processor custom solr compon...

GitHub user tirthmehta1994 opened a pull request:

    https://github.com/apache/lucene-solr/pull/483

    Log Delete Query Processor custom solr component

    Log Delete Query Processor custom solr component

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/walmartlabs/lucene-solr logdeletequeryprocessor2

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucene-solr/pull/483.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #483
    
----
commit 20720b7ffdc2deac9d31cd38afdec21cba3bc7fe
Author: tirthmehta1994 <ti...@...>
Date:   2018-10-23T16:53:34Z

    Log Delete Query Processor custom solr component

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[GitHub] lucene-solr pull request #483: Log Delete Query Processor custom solr compon...

Posted by vthacker <gi...@git.apache.org>.
Github user vthacker commented on a diff in the pull request:

    https://github.com/apache/lucene-solr/pull/483#discussion_r228301278
  
    --- Diff: solr/server/resources/log4j2.xml ---
    @@ -67,6 +67,10 @@
         <Logger name="org.apache.solr.core.SolrCore.SlowRequest" level="info" additivity="false">
           <AppenderRef ref="SlowFile"/>
         </Logger>
    +    <Logger name="org.apache.solr.update.processor.LogDeleteQueryProcessorFactory" level="warn"/>
    +    <Logger name="org.apache.solr.update.processor.LogDeleteQueryProcessorFactory.delete" level="info" additivity="false">
    --- End diff --
    
    Is LogDeleteQueryProcessorFactory defined somewhere? Or should the class name be `LogUpdateProcessorFactory` ?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[GitHub] lucene-solr pull request #483: Log Delete Query Processor custom solr compon...

Posted by vthacker <gi...@git.apache.org>.
Github user vthacker commented on a diff in the pull request:

    https://github.com/apache/lucene-solr/pull/483#discussion_r228304003
  
    --- Diff: solr/core/src/java/org/apache/solr/update/processor/LogUpdateProcessorFactory.java ---
    @@ -187,12 +190,23 @@ public void finish() throws IOException {
             log.info(getLogStringAndClearRspToLog());
           }
     
    +      if (deleteLog.isInfoEnabled()) {
    --- End diff --
    
    What if it's a mixed set of commands like this example : http://lucene.apache.org/solr/guide/7_5/uploading-data-with-index-handlers.html#sending-json-update-commands
    
    Is the goal here to log any request that contains a delete or log only deletes to a separate file? The final condition check here will need to vary based on that


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[GitHub] lucene-solr pull request #483: Log Delete Query Processor custom solr compon...

Posted by tirthmehta1994 <gi...@git.apache.org>.
Github user tirthmehta1994 commented on a diff in the pull request:

    https://github.com/apache/lucene-solr/pull/483#discussion_r232522667
  
    --- Diff: solr/core/src/java/org/apache/solr/update/processor/LogUpdateProcessorFactory.java ---
    @@ -187,12 +190,23 @@ public void finish() throws IOException {
             log.info(getLogStringAndClearRspToLog());
           }
     
    +      if (deleteLog.isInfoEnabled()) {
    --- End diff --
    
    @vthacker it would be great if you could let me know of some updates here. Thanks.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[GitHub] lucene-solr pull request #483: Log Delete Query Processor custom solr compon...

Posted by tirthmehta1994 <gi...@git.apache.org>.
Github user tirthmehta1994 commented on a diff in the pull request:

    https://github.com/apache/lucene-solr/pull/483#discussion_r228394789
  
    --- Diff: solr/server/resources/log4j2.xml ---
    @@ -67,6 +67,10 @@
         <Logger name="org.apache.solr.core.SolrCore.SlowRequest" level="info" additivity="false">
           <AppenderRef ref="SlowFile"/>
         </Logger>
    +    <Logger name="org.apache.solr.update.processor.LogDeleteQueryProcessorFactory" level="warn"/>
    +    <Logger name="org.apache.solr.update.processor.LogDeleteQueryProcessorFactory.delete" level="info" additivity="false">
    --- End diff --
    
    Yup, it should have been LogUpdateProcessorFactory itself, since the changes are planned in LogUpdateProcessorFactory class itself. I have made the changes accordingly.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[GitHub] lucene-solr pull request #483: Log Delete Query Processor custom solr compon...

Posted by tirthmehta1994 <gi...@git.apache.org>.
Github user tirthmehta1994 commented on a diff in the pull request:

    https://github.com/apache/lucene-solr/pull/483#discussion_r228394242
  
    --- Diff: solr/core/src/java/org/apache/solr/update/processor/LogUpdateProcessorFactory.java ---
    @@ -187,12 +190,23 @@ public void finish() throws IOException {
             log.info(getLogStringAndClearRspToLog());
           }
     
    +      if (deleteLog.isInfoEnabled()) {
    --- End diff --
    
    Any request that contains a delete


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[GitHub] lucene-solr issue #483: Log Delete Query Processor custom solr component

Posted by tirthmehta1994 <gi...@git.apache.org>.
Github user tirthmehta1994 commented on the issue:

    https://github.com/apache/lucene-solr/pull/483
  
    Hi @vthacker, this is the jira for Log Delete Query Processor: https://issues.apache.org/jira/browse/SOLR-12904


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org