Skip to content

Commit

Permalink
tests: validate offset translator state in random_node_operations_test
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Maślanka <[email protected]>
(cherry picked from commit 59eba45)
  • Loading branch information
mmaslankaprv committed Jan 7, 2025
1 parent 7895ee8 commit 6cebe3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/rptest/tests/random_node_operations_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from rptest.services.redpanda import CHAOS_LOG_ALLOW_LIST, PREV_VERSION_LOG_ALLOW_LIST, SISettings
from rptest.services.redpanda_installer import RedpandaInstaller
from rptest.utils.mode_checks import cleanup_on_early_exit, skip_debug_mode
from rptest.utils.node_operations import FailureInjectorBackgroundThread, NodeOpsExecutor, generate_random_workload
from rptest.utils.node_operations import FailureInjectorBackgroundThread, NodeOpsExecutor, generate_random_workload, verify_offset_translator_state_consistent

from rptest.clients.offline_log_viewer import OfflineLogViewer

Expand Down Expand Up @@ -529,6 +529,7 @@ def cluster_version_updated():
if with_tiered_storage:
self.redpanda.stop_and_scrub_object_storage()

verify_offset_translator_state_consistent(self.redpanda)
# Validate that the controller log written during the test is readable by offline log viewer
log_viewer = OfflineLogViewer(self.redpanda)
for node in self.redpanda.started_nodes():
Expand Down

0 comments on commit 6cebe3f

Please sign in to comment.