I added data to Disruptor by calling tryPublishEvent
function.
After I wait 40 second and tried to check unprocessedDataCount
by following calculation:
long ringBufferUnProcessedCount = disruptor.getBufferSize()
- disruptor.getRingBuffer().remainingCapacity()
Sometimes remainingCapacity
value equals to 0, even if before getting ringBufferUnProcessedCount
value we wait 40 seconds.
This error happens very rarely.
Do not you know why it might be?