You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NotifyOnFlushCompleted function is called regardless of the status of the flush and the status is passed through via the FlushInfo to the OnFlushCompleted event listener.
Actual behavior
NotifyOnFlushCompleted is only called if the flush is successful.
Steps to reproduce the behavior
Initiate a shutdown of a database between a NotifyOnFlushBegin and NotifyOnFlushCompleted call. The OnFlushCompleted call is never made.
The text was updated successfully, but these errors were encountered:
It seems reasonable to always call NotifyOnFlushCompleted(). However, there is currently no status field defined in FlushJobInfo. It could be added, but I'm wary of breaking any existing code that might assume that the callback indicates an SST file has been created by the flush.
Is there any action your code needs to take if flush fails?
In my code we don't actually need the status of the flush, but we do need our OnFlushCompleted listener to be called even when a flush fails. We use the listeners to set thread local variables to track memory allocations via new and delete overrides.
Expected behavior
NotifyOnFlushCompleted function is called regardless of the status of the flush and the status is passed through via the FlushInfo to the OnFlushCompleted event listener.
Actual behavior
NotifyOnFlushCompleted is only called if the flush is successful.
Steps to reproduce the behavior
Initiate a shutdown of a database between a NotifyOnFlushBegin and NotifyOnFlushCompleted call. The OnFlushCompleted call is never made.
The text was updated successfully, but these errors were encountered: