Browse Source
Fix test FetchRequestTest.testLastFetchedEpochValidation for KRaft mode The test fails due to unexpected error (OFFSET_OUT_OF_RANGE) when enabled with KRaft mode. The reason it takes longer to set the leader epoch in KRaft mode is because of the way the topic partitions are created differently than Zookeeper. In Zookeeper mode, we create the topic partitions directly with Zookeeper therefore seem to take less time to create the logs and set leader epoch on broker. In KRaft mode, we use Admin client to create topic partitions. Even though the test waits for topic partitions to get created and appear in metadata cache, it doesn’t seem to be sufficient time for leader epoch to get set on the brokers. Reviewers: Luke Chen <showuon@gmail.com>, dengziming <dengziming1993@gmail.com>pull/7111/head
Gantigmaa Selenge
1 year ago
committed by
GitHub
1 changed files with 3 additions and 2 deletions
Loading…
Reference in new issue