Skip to content

[IO-867] Fix ThresholdingOutputStream.isThresholdExceeded and event retry#847

Open
SAY-5 wants to merge 1 commit into
apache:masterfrom
SAY-5:IO-867-threshold-exceeded
Open

[IO-867] Fix ThresholdingOutputStream.isThresholdExceeded and event retry#847
SAY-5 wants to merge 1 commit into
apache:masterfrom
SAY-5:IO-867-threshold-exceeded

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 12, 2026

isThresholdExceeded() now returns the tracked thresholdExceeded flag instead of written > threshold, so it stays consistent with checkThreshold() and with DeferredFileOutputStream.isInMemory(). checkThreshold() also rolls back the flag if thresholdReached() throws, so a failed event no longer prevents the stream from re-firing it and no longer leaves DeferredFileOutputStream in an inconsistent in-memory/on-disk state.

Closes #IO-867 (https://issues.apache.org/jira/browse/IO-867).

@garydgregory
Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants