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>
  • Loading branch information
mmaslankaprv committed May 14, 2024
1 parent b827ac7 commit c5fe910
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 @@ -413,7 +413,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 c5fe910

Please sign in to comment.