You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "wuchong (via GitHub)" <gi...@apache.org> on 2026/08/20 04:13:27 UTC

[PR] [test] Wait for local leader readiness [fluss]

wuchong opened a new pull request, #4053:
URL: https://github.com/apache/fluss/pull/4053

   <!--
   Generated-by: Codex (gpt-5.6-sol) following [the guidelines](https://github.com/apache/fluss/blob/main/AGENTS.md)
   -->
   
   ### Purpose
   
   Linked issue: close #4052
   
   `LogFetcherITCase#testFetchWithSchemaChange` failed in [this CI job](https://github.com/apache/fluss/actions/runs/32277065376/job/96146976916?pr=3233) because `waitAndGetLeader` returned the ZooKeeper-assigned leader before that TabletServer had completed its local leader transition. The test could then send a leader-only request too early and receive an error response without `base_offset`.
   
   ### Brief change log
   
   - Make `FlussClusterExtension#waitAndGetLeader` wait for both the ZooKeeper leader assignment and the corresponding locally ready leader replica.
   - Document the stronger readiness guarantee.
   
   ### Tests
   
   - `./mvnw -pl fluss-client -am -Dtest=LogFetcherITCase#testFetchWithSchemaChange -Dsurefire.failIfNoSpecifiedTests=false test`
   
   ### API and Format
   
   No API or format changes.
   
   ### Documentation
   
   No documentation changes.
   
   ### Generative AI disclosure
   
   - [x] Yes — Codex (gpt-5.6-sol). All changes were reviewed before submission.


-- 
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] [test] Wait for local leader readiness [fluss]

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


-- 
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