From b29bd5f7049a983157e0800eeed6269864277c57 Mon Sep 17 00:00:00 2001 From: Bharath Vissapragada Date: Tue, 17 Sep 2024 13:54:26 -0700 Subject: [PATCH] crc test repro --- tests/rptest/tests/crc_failure_test.py | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/rptest/tests/crc_failure_test.py diff --git a/tests/rptest/tests/crc_failure_test.py b/tests/rptest/tests/crc_failure_test.py new file mode 100644 index 0000000000000..2b8eb39879e05 --- /dev/null +++ b/tests/rptest/tests/crc_failure_test.py @@ -0,0 +1,32 @@ +# Copyright 2022 Redpanda Data, Inc. +# +# Use of this software is governed by the Business Source License +# included in the file licenses/BSL.md +# +# As of the Change Date specified in that file, in accordance with +# the Business Source License, use of this software will be governed +# by the Apache License, Version 2.0 + +import time +from rptest.services.cluster import cluster +from rptest.clients.types import TopicSpec +from rptest.tests.end_to_end import EndToEndTest +from rptest.services.redpanda import RESTART_LOG_ALLOW_LIST, RedpandaService + + +class ShutdownTest(EndToEndTest): + @cluster(num_nodes=5, log_allow_list=RESTART_LOG_ALLOW_LIST) + def crc_failure_repro_test(self): + self.topic = TopicSpec(partition_count=1, replication_factor=3) + rp_conf = { + 'enable_leader_balancer': False, + 'auto_create_topics_enabled': True + } + self.redpanda = RedpandaService(self.test_context, + 3, + extra_rp_conf=rp_conf) + self.redpanda.start() + # Background load generation + self.start_producer(2, 200000) + time.sleep(3 * 60) + self.producer.stop()