Hi, I hit this issue https://issues.apache.org/jira/browse/SOLR-11504 while migrating to solr6 and locally working around it in Lucene code. I am thinking to fix it properly and hopefully patch back to Solr. Since, Lucene code does not want to keep any such config, I am thinking to use a counting semaphore in Solr code before calling IndexWriter.addDocument(s) or IndexWriter.updateDocument(s).
IndexWriter.getDocument(s) and updateDocument(s) are being used in DirectUpdateHandler2 and FileBasedSpellChecker.java. Since the normal document indexing goes through DirectUpdateHandler2, I am thinking to only throttle the number of indexing threads in this class. Does this make sense? Can anyone mentor me for this and review my change? Thanks Nawab