rmuir commented on PR #11955:
URL: https://github.com/apache/lucene/pull/11955#issuecomment-1321170185

   > Does this library also check for race conditions that can arise between 
ResourceLoaderAware::inform vs TokenStream creation and processing? I know it 
may be out of the scope of this change but I would be curious to know..
   
   Specific to this, I think one potential plan: we could refactor the tests 
more to check for it. Existing tests are using `BaseTokenStreamTestCase` but we 
could also test factories with 
https://github.com/apache/lucene/blob/main/lucene/test-framework/src/java/org/apache/lucene/tests/analysis/BaseTokenStreamFactoryTestCase.java
   
   And maybe we could add evil stuff to this `BaseTokenStreamFactoryTestCase` 
to root out any factory-specific thread hazards across all of our factories 
(including opennlp).


-- 
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

Reply via email to