[ https://issues.apache.org/jira/browse/SOLR-10944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Susheel Kumar updated SOLR-10944: --------------------------------- Attachment: SOLR-10944.patch Hello, Attach is the patch where the below line causes "Index 0, Size 0" exception when get open the stream and since the list variable "l" has no elements, it throws error. Added a test as well. Please let me know if need to be handled differently Bug === if(l.get(0) instanceof Tuple) Fix === Simply assign the iterator then checking for and later read will check for EOF tupleIterator = l.iterator(); > Get expression fails to return EOF tuple > ----------------------------------------- > > Key: SOLR-10944 > URL: https://issues.apache.org/jira/browse/SOLR-10944 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: search > Affects Versions: 6.6 > Reporter: Susheel Kumar > Priority: Blocker > Labels: patch > Attachments: SOLR-10944.patch > > > Below is a simple let expr where search would not find a match and return 0 > result. In that case, we expect get(a) to show a EOF tuple while it is > throwing exception. > === > let(a=search(collection1, > q=id:999999999, > fl="id,business_email", > sort="business_email asc"), > get(a) > ) > { > "result-set": { > "docs": [ > { > "EXCEPTION": "Index: 0, Size: 0", > "EOF": true, > "RESPONSE_TIME": 8 > } > ] > } > } -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org