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
{{ message }}
Repository navigation
Data Race between Batch.tryAddFirstEvent and Batch.sealIfFlushNeeded #97
It is possible for the thread calling Emitter.emit and the EmittingThread to race on the firstEventTimestamp field. If the Emitter.emit thread was running Batch.tryAddFirstEvent
and gets context switched out after writing the event to the buffer
and incrementing the event count but before setting firstEventTimestamp, this can cause timeSinceFirstEvent to be inaccurate, leading to the batch not being sealed within the configured flushMillis.
Activity