benwtrent commented on issue #13798: URL: https://github.com/apache/lucene/issues/13798#issuecomment-2355911571
Ah, looking at the `clone` code for merge state @jpountz ``` for (int i = 0; i < storedFieldsReaders.length; ++i) { if (storedFieldsReaders[i] != null) { storedFieldsReaders[i] = storedFieldsReaders[i].getMergeInstance(); } if (termVectorsReaders[i] != null) { termVectorsReaders[i] = termVectorsReaders[i].getMergeInstance(); } if (normsProducers[i] != null) { normsProducers[i] = normsProducers[i].getMergeInstance(); } if (docValuesProducers[i] != null) { docValuesProducers[i] = docValuesProducers[i].getMergeInstance(); } if (fieldsProducers[i] != null) { fieldsProducers[i] = fieldsProducers[i].getMergeInstance(); } if (pointsReaders[i] != null) { pointsReaders[i] = pointsReaders[i].getMergeInstance(); } if (knnVectorsReaders[i] != null) { knnVectorsReaders[i] = knnVectorsReaders[i].getMergeInstance(); } } ``` This assumes `getMergeInstance()` does something. But points simply returns `this`. I am thinking that sharing a `reader` between threads is always a bad idea. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org