From c5fe9104090dbb22d7d013a2a42756a1a3ba6dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ma=C5=9Blanka?= Date: Tue, 14 May 2024 12:39:44 +0000 Subject: [PATCH] t/fetch_test: wait longer for leadership after stepping down MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: #17943 Fixes: #18059 Signed-off-by: Michał Maślanka --- src/v/kafka/server/tests/fetch_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v/kafka/server/tests/fetch_test.cc b/src/v/kafka/server/tests/fetch_test.cc index 26dd61b474bc7..52d990bf2013d 100644 --- a/src/v/kafka/server/tests/fetch_test.cc +++ b/src/v/kafka/server/tests/fetch_test.cc @@ -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);