Skip to content

Commit

Permalink
Merge pull request #5721 from abhijat/test-missing-partition-use-exac…
Browse files Browse the repository at this point in the history
…t-manifest

cloud_storage/tests: match topic name when deleting manifest
  • Loading branch information
abhijat committed Jul 29, 2022
2 parents 3ffc891 + 9333fa8 commit 6d7aeb7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/rptest/tests/topic_recovery_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ class MissingPartition(BaseCase):
only one key).
"""

topics = (TopicSpec(name='panda-topic',
topic_name = 'panda-topic'
topics = (TopicSpec(name=topic_name,
partition_count=2,
replication_factor=3), )

Expand Down Expand Up @@ -377,8 +378,9 @@ def _find_and_remove_partition_manifest(self):
consistent in Minio S3 implementation)."""
manifest = None
for key in self._list_objects():
if key.endswith("/manifest.json"):
if key.endswith("/manifest.json") and self.topic_name in key:
attr = parse_s3_manifest_path(key)
assert attr.ntp.topic == self.topic_name
if attr.ntp.partition == 0:
manifest = key
else:
Expand Down

0 comments on commit 6d7aeb7

Please sign in to comment.