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
Found when debugging ChronicleEnterprise/Chronicle-Queue-Enterprise#333
StoreAppender.writeBytesInternal() will call resetPosition every time (which may be wasteful), but it will also assign wire.headerNumber to store.approximateLastSequenceNumber, which is as its name implies approximate, and may return invalid value when queue is closed after process crash.
This does not seem optimal, but for some reason store.exactLastSequenceNumber call is prohibitively expensive to be used there. In many cases it would resort to sequential scanning of queue, which should be almost always unnecessary.
If this problem is fixed then check introduced in ChronicleEnterprise/Chronicle-Queue-Enterprise#333 may be removed.
The text was updated successfully, but these errors were encountered:
Found when debugging ChronicleEnterprise/Chronicle-Queue-Enterprise#333
StoreAppender.writeBytesInternal() will call resetPosition every time (which may be wasteful), but it will also assign
wire.headerNumber
tostore.approximateLastSequenceNumber
, which is as its name implies approximate, and may return invalid value when queue is closed after process crash.This does not seem optimal, but for some reason
store.exactLastSequenceNumber
call is prohibitively expensive to be used there. In many cases it would resort to sequential scanning of queue, which should be almost always unnecessary.If this problem is fixed then check introduced in ChronicleEnterprise/Chronicle-Queue-Enterprise#333 may be removed.
The text was updated successfully, but these errors were encountered: