You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Andrew Gunther (Created) (JIRA)" <ji...@apache.org> on 2011/12/09 18:40:40 UTC

[jira] [Created] (SOLR-2958) SolrEntityProcessor prematurely ending when performing doQuery()

SolrEntityProcessor prematurely ending when performing doQuery()
----------------------------------------------------------------

                 Key: SOLR-2958
                 URL: https://issues.apache.org/jira/browse/SOLR-2958
             Project: Solr
          Issue Type: Bug
          Components: contrib - DataImportHandler
    Affects Versions: 3.2
            Reporter: Andrew Gunther


from my memory...
doQuery() method is incorrectly setting finished = true; during the condition below..
Scenario:
numFound=720
rows=500
error:last 220 records are not returned.

Replacing query.getStart() (which is essentially 500 + 500 > 720 => TRUE) with 1 has worked for us.

    if (context.isRootEntity()) {
      // only check the numFound end condition if we're the root entity, otherwise the query could be changing each time
     // if (currentRow + query.getStart() > numFound) {
           if ((currentRow + 1 > numFound) && (numFound > 0)) {      
        finished = true;
        return;
      }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Closed] (SOLR-2958) SolrEntityProcessor prematurely ending when performing doQuery()

Posted by "Andrew Gunther (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Gunther closed SOLR-2958.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.6

trunk patch of SOLR 1499 provided refactoring which resolved the problem
                
> SolrEntityProcessor prematurely ending when performing doQuery()
> ----------------------------------------------------------------
>
>                 Key: SOLR-2958
>                 URL: https://issues.apache.org/jira/browse/SOLR-2958
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 3.2
>            Reporter: Andrew Gunther
>             Fix For: 3.6
>
>         Attachments: SOLR-2958.patch
>
>
> from my memory...
> doQuery() method is incorrectly setting finished = true; during the condition below..
> Scenario:
> numFound=720
> rows=500
> error:last 220 records are not returned.
> Replacing query.getStart() (which is essentially 500 + 500 > 720 => TRUE) with 1 has worked for us.
>     if (context.isRootEntity()) {
>       // only check the numFound end condition if we're the root entity, otherwise the query could be changing each time
>      // if (currentRow + query.getStart() > numFound) {
>            if ((currentRow + 1 > numFound) && (numFound > 0)) {      
>         finished = true;
>         return;
>       }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (SOLR-2958) SolrEntityProcessor prematurely ending when performing doQuery()

Posted by "Andrew Gunther (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13166739#comment-13166739 ] 

Andrew Gunther commented on SOLR-2958:
--------------------------------------

my mistake as I was comparing to a non-trunk version of SOLR-1499 patch.
All is well and issue can be closed. thanks for the test cases.
                
> SolrEntityProcessor prematurely ending when performing doQuery()
> ----------------------------------------------------------------
>
>                 Key: SOLR-2958
>                 URL: https://issues.apache.org/jira/browse/SOLR-2958
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 3.2
>            Reporter: Andrew Gunther
>         Attachments: SOLR-2958.patch
>
>
> from my memory...
> doQuery() method is incorrectly setting finished = true; during the condition below..
> Scenario:
> numFound=720
> rows=500
> error:last 220 records are not returned.
> Replacing query.getStart() (which is essentially 500 + 500 > 720 => TRUE) with 1 has worked for us.
>     if (context.isRootEntity()) {
>       // only check the numFound end condition if we're the root entity, otherwise the query could be changing each time
>      // if (currentRow + query.getStart() > numFound) {
>            if ((currentRow + 1 > numFound) && (numFound > 0)) {      
>         finished = true;
>         return;
>       }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (SOLR-2958) SolrEntityProcessor prematurely ending when performing doQuery()

Posted by "Andrew Gunther (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13166433#comment-13166433 ] 

Andrew Gunther commented on SOLR-2958:
--------------------------------------

Our solr source tree is 3.2 although the problem is still present in the last SOLR-1499 patch so it is all versions.

                
> SolrEntityProcessor prematurely ending when performing doQuery()
> ----------------------------------------------------------------
>
>                 Key: SOLR-2958
>                 URL: https://issues.apache.org/jira/browse/SOLR-2958
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 3.2
>            Reporter: Andrew Gunther
>
> from my memory...
> doQuery() method is incorrectly setting finished = true; during the condition below..
> Scenario:
> numFound=720
> rows=500
> error:last 220 records are not returned.
> Replacing query.getStart() (which is essentially 500 + 500 > 720 => TRUE) with 1 has worked for us.
>     if (context.isRootEntity()) {
>       // only check the numFound end condition if we're the root entity, otherwise the query could be changing each time
>      // if (currentRow + query.getStart() > numFound) {
>            if ((currentRow + 1 > numFound) && (numFound > 0)) {      
>         finished = true;
>         return;
>       }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Updated] (SOLR-2958) SolrEntityProcessor prematurely ending when performing doQuery()

Posted by "Martijn van Groningen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martijn van Groningen updated SOLR-2958:
----------------------------------------

    Attachment: SOLR-2958.patch

I tried to reproduce the bug, but I didn't run into the bug on the Solr instance I have access to.

I also added a test case to the issue. 
In this test case 720 documents are added. The dih configured with the SolrEntityProcessor (with rows=500) imports these documents into another Solr instance.
This test passes now.

Can you run this test in your environment?
                
> SolrEntityProcessor prematurely ending when performing doQuery()
> ----------------------------------------------------------------
>
>                 Key: SOLR-2958
>                 URL: https://issues.apache.org/jira/browse/SOLR-2958
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 3.2
>            Reporter: Andrew Gunther
>         Attachments: SOLR-2958.patch
>
>
> from my memory...
> doQuery() method is incorrectly setting finished = true; during the condition below..
> Scenario:
> numFound=720
> rows=500
> error:last 220 records are not returned.
> Replacing query.getStart() (which is essentially 500 + 500 > 720 => TRUE) with 1 has worked for us.
>     if (context.isRootEntity()) {
>       // only check the numFound end condition if we're the root entity, otherwise the query could be changing each time
>      // if (currentRow + query.getStart() > numFound) {
>            if ((currentRow + 1 > numFound) && (numFound > 0)) {      
>         finished = true;
>         return;
>       }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (SOLR-2958) SolrEntityProcessor prematurely ending when performing doQuery()

Posted by "Martijn van Groningen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13166401#comment-13166401 ] 

Martijn van Groningen commented on SOLR-2958:
---------------------------------------------

Does this affect the code committed with SOLR-1499?
You set the affect versions to 3.2, so I'm not sure.
                
> SolrEntityProcessor prematurely ending when performing doQuery()
> ----------------------------------------------------------------
>
>                 Key: SOLR-2958
>                 URL: https://issues.apache.org/jira/browse/SOLR-2958
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 3.2
>            Reporter: Andrew Gunther
>
> from my memory...
> doQuery() method is incorrectly setting finished = true; during the condition below..
> Scenario:
> numFound=720
> rows=500
> error:last 220 records are not returned.
> Replacing query.getStart() (which is essentially 500 + 500 > 720 => TRUE) with 1 has worked for us.
>     if (context.isRootEntity()) {
>       // only check the numFound end condition if we're the root entity, otherwise the query could be changing each time
>      // if (currentRow + query.getStart() > numFound) {
>            if ((currentRow + 1 > numFound) && (numFound > 0)) {      
>         finished = true;
>         return;
>       }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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