Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
BackgroundObserver close method currently says that it does not wait for thread to finish. This can lead to situation when during shutdown the backing NodeStore goes away while the background thread is still busy with diff and that would lead to exceptions in the log.
As being done in OAK-3923 the close call should wait for STOP signal to be processed before returning from close call.
On side note we should also provide an option where the close call should wait for the queue to be processed instead of just silently clearing the queue which can lead to potential loss of important local events. Note that can happen for proper ordered shutdown!
Attachments
Attachments
Issue Links
- relates to
-
OAK-3923 Async indexing delayed by 30 minutes because stop order is incorrect
-
- Closed
-