Skip to content

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

Merged
garydgregory merged 1 commit into
apache:masterfrom
SAY-5:IO-867-threshold-exceeded
May 13, 2026
Merged

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

Conversation

@SAY-5
Copy link
Copy Markdown
Contributor

@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

@garydgregory garydgregory merged commit a68a9f1 into apache:master May 13, 2026
21 checks passed
@garydgregory
Copy link
Copy Markdown
Member

@SAY-5
Thank you for the PR 🚀 Merged!

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