You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "fresh-borzoni (via GitHub)" <gi...@apache.org> on 2026/01/11 17:30:55 UTC

[PR] [ISSUE-146] decrement flushes_in_progress counter in await_flush_comp… [fluss-rust]

fresh-borzoni opened a new pull request, #147:
URL: https://github.com/apache/fluss-rust/pull/147

     ## Summary
     Fixes critical bug where `flushes_in_progress` counter is never decremented, causing batching to be permanently disabled after the first flush.
   
     Closes #146
   
     ## The Bug
     `begin_flush()` increments the counter but `await_flush_completion()` never decrements it. This is a porting error from the Java implementation which correctly decrements in a `finally` block.
   
     ## Impact
     After the first `flush()` call:
     - `flushes_in_progress` stays at 1 forever
     - `flush_in_progress()` always returns `true`
     - All batches become immediately sendable (no batching optimization)
   
    ## The Fix
    Always decrement counter after flush completes (mimics Java `finally` block)
   


-- 
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@fluss.apache.org

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


Re: [PR] [ISSUE-146] decrement flushes_in_progress counter in await_flush_comp… [fluss-rust]

Posted by "fresh-borzoni (via GitHub)" <gi...@apache.org>.
fresh-borzoni commented on PR #147:
URL: https://github.com/apache/fluss-rust/pull/147#issuecomment-3735135497

   I'll rebase once  another branch is 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@fluss.apache.org

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


Re: [PR] [ISSUE-146] decrement flushes_in_progress counter in await_flush_comp… [fluss-rust]

Posted by "fresh-borzoni (via GitHub)" <gi...@apache.org>.
fresh-borzoni commented on PR #147:
URL: https://github.com/apache/fluss-rust/pull/147#issuecomment-3736679745

   @luoyuxia No worries, my pleasure to help
   
   merged main here, good to merge now


-- 
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@fluss.apache.org

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


Re: [PR] [ISSUE-146] decrement flushes_in_progress counter in await_flush_comp… [fluss-rust]

Posted by "luoyuxia (via GitHub)" <gi...@apache.org>.
luoyuxia merged PR #147:
URL: https://github.com/apache/fluss-rust/pull/147


-- 
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@fluss.apache.org

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


Re: [PR] [ISSUE-146] decrement flushes_in_progress counter in await_flush_comp… [fluss-rust]

Posted by "fresh-borzoni (via GitHub)" <gi...@apache.org>.
fresh-borzoni commented on PR #147:
URL: https://github.com/apache/fluss-rust/pull/147#issuecomment-3736055555

   @leekeiabstraction Thanks for the review.
   
   I added a unit test that proves the fix is sound. Integration test would require making the method public and threading it through, which I don't feel is needed at this point.


-- 
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@fluss.apache.org

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


Re: [PR] [ISSUE-146] decrement flushes_in_progress counter in await_flush_comp… [fluss-rust]

Posted by "leekeiabstraction (via GitHub)" <gi...@apache.org>.
leekeiabstraction commented on PR #147:
URL: https://github.com/apache/fluss-rust/pull/147#issuecomment-3736190609

   LGTM thank you!


-- 
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@fluss.apache.org

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