Skip to content

Commit 2eae38d

Browse files
committed
cloud_storage: Do not remove redpanda log
Do not remove redpanda log after node restart if the node is restarted during the test.
1 parent 5a772c8 commit 2eae38d

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.yapfignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ build/*
33
vtools/*
44
depot_tools/*
55
src/v/dashboard/node_modules/*
6+
go/*

tests/rptest/services/redpanda.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,9 @@ def clean_node(self, node):
287287
node.account.remove(f"{RedpandaService.PERSISTENT_ROOT}/*")
288288
node.account.remove(f"{RedpandaService.CONFIG_FILE}")
289289

290+
def remove_local_data(self, node):
291+
node.account.remove(f"{RedpandaService.PERSISTENT_ROOT}/data/*")
292+
290293
def redpanda_pid(self, node):
291294
# we need to look for redpanda pid. pids() method returns pids of both
292295
# nodejs server and redpanda

tests/rptest/tests/topic_recovery_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ def _wipe_data(self):
14531453
for node in self.redpanda.nodes:
14541454
self.logger.info(
14551455
f"All data will be removed from node {node.account.hostname}")
1456-
self.redpanda.clean_node(node)
1456+
self.redpanda.remove_local_data(node)
14571457

14581458
def _wait_for_topic(self,
14591459
recovered_topics,

0 commit comments

Comments
 (0)