lucene-solr
lucene-solr copied to clipboard
Cleanup DWPT state handling
DWPT currently has no real notion of a state but it's lifecycle really requires such a notion. We move DWPTs from active to flush pending to flushing and execute certain actions like RAM accounting based on these states. To simplify the transitions and the concurrency involved in it, it makes sense to formalize the transitions and if it can happen under lock or not.
@mikemccand can you take a look at this?
this is a followup from https://github.com/apache/lucene-solr/pull/1918