Shalin Shekhar Mangar created SOLR-5347:
-------------------------------------------

             Summary: DataImportHandler 'start' parameter doesn't work unless 
'rows' is also specified
                 Key: SOLR-5347
                 URL: https://issues.apache.org/jira/browse/SOLR-5347
             Project: Solr
          Issue Type: Bug
          Components: contrib - DataImportHandler
    Affects Versions: 4.5
            Reporter: Shalin Shekhar Mangar
            Assignee: Shalin Shekhar Mangar
            Priority: Minor
             Fix For: 4.6, 5.0


The 'rows' param is initialized to Long.MAX_VALUE by default. Therefore when 
'start' parameter is specified and DocBuilder does the following check:
{code}
if(importStatistics.docCount.get() > (reqParams.getStart() + 
reqParams.getRows())) break;
{code}

The R.H.S. overflows and the condition evaluates to true. The end result is 
that no documents are ever indexed.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to