forked from ravendb/ravendb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RavenDB-22972 Fixing NREs on getting LowLevelTransaction.Id from Scan…
…Oldest() and LowLevelTransaction.TryGetClientState() called by LuceneIndexPersistence.Clean() after we started to null _envRecord on tx dispoe. The issue was that we could dispose a transaction while we iterated over active ones. RavenDB-22995 Fixing missing disposal of IndexSearcher after recreating it to cleanup Lucene readers. Also changing the cleanup implementation so we won't create a new index searcher instance per each active transaction (it's likely that all active transaction use the same LuceneIndexState instance anyway, hence also same IndexSearcher).
- Loading branch information
1 parent
60ddb5e
commit 278ec13
Showing
3 changed files
with
60 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters