Skip to content

Commit

Permalink
t/fetch_test: wait longer for leadership after stepping down
Browse files Browse the repository at this point in the history
Drift in seastar lowres clock may lead to situation in which a leader
election will not trigger in 1.5 seconds. Increased a wait for leader
timeout to eliminate test spurious failures.

Fixes: redpanda-data#17943
Fixes: redpanda-data#18059

Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit c5fe910)
  • Loading branch information
mmaslankaprv authored and vbotbuildovich committed Jun 12, 2024
1 parent b0ed98c commit dd33ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v/kafka/server/tests/fetch_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ FIXTURE_TEST(fetch_leader_epoch, redpanda_thread_fixture) {
.get0();
}
partition->raft()->step_down("trigger epoch change").get0();
wait_for_leader(ntp).get0();
wait_for_leader(ntp, 10s).get0();
{
auto batches = model::test::make_random_batches(
model::offset(0), 5);
Expand Down

0 comments on commit dd33ef5

Please sign in to comment.