You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "SAY-5 (via GitHub)" <gi...@apache.org> on 2026/05/12 23:34:55 UTC

[PR] [IO-867] Fix ThresholdingOutputStream.isThresholdExceeded and event retry [commons-io]

SAY-5 opened a new pull request, #847:
URL: https://github.com/apache/commons-io/pull/847

   `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).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [IO-867] Fix ThresholdingOutputStream.isThresholdExceeded and event retry [commons-io]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #847:
URL: https://github.com/apache/commons-io/pull/847#issuecomment-4444386345

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [IO-867] Fix ThresholdingOutputStream.isThresholdExceeded and event retry [commons-io]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #847:
URL: https://github.com/apache/commons-io/pull/847#issuecomment-4435781058

   Jira: https://issues.apache.org/jira/browse/IO-867
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [IO-867] Fix ThresholdingOutputStream.isThresholdExceeded and event retry [commons-io]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory merged PR #847:
URL: https://github.com/apache/commons-io/pull/847


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org