forked from elastic/elasticsearch
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Engine: back port elastic#9648 - Fix deadlock problems when API flush…
… and finish recovery happens concurrently Issue elastic#9648 fixes a potential deadlock between two concurrent flushes - one at the end of recovery and one through the API or background flush. This back ports the logic to 1.4 . It is slightly more contrived as we still use the write lock in the flush code. If we feel we have some concerns about this approach we can also move the recovery flush to happen on a generic thread. Closes elastic#9942
- Loading branch information
Showing
1 changed file
with
86 additions
and
91 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