-
Notifications
You must be signed in to change notification settings - Fork 727
[CORE-13570] Deflake test_timequery_with_local_gc
#28070
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -59,6 +59,8 @@ def _create_and_produce( | |||||
| "redpanda.remote.read": "true", | ||||||
| "redpanda.remote.write": "true", | ||||||
| "retention.local.target.bytes": local_retention, | ||||||
| # See comment about disabling `retention.ms` below. | ||||||
| "retention.local.target.ms": -1, | ||||||
| }.items(): | ||||||
| self.client().alter_topic_config(topic.name, k, v) | ||||||
| desc = self.client().describe_topic_configs(topic.name) | ||||||
|
|
@@ -357,6 +359,11 @@ def set_up_cluster(self, cloud_storage: bool, batch_cache: bool, spillover: bool | |||||
| else: | ||||||
| self.redpanda.add_extra_rp_conf({"log_segment_size": self.log_segment_size}) | ||||||
|
|
||||||
| # `test_timequery_with_local_gc` attempts to set the `log_segment_size` lower than the minimum | ||||||
| # value of 1_MiB- disable bounded property checks to allow this. | ||||||
| self.redpanda.set_environment( | ||||||
| {"__REDPANDA_TEST_DISABLE_BOUNDED_PROPERTY_CHECKS": "ON"} | ||||||
| ) | ||||||
|
Comment on lines
+364
to
+366
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ahh the warning was on bootup, not from something later like alter topic config. i think the later will fail, but indeed this just seems to warn silently on bootup. |
||||||
| self.redpanda.start() | ||||||
|
|
||||||
| def _do_test_timequery( | ||||||
|
|
@@ -801,7 +808,7 @@ def create_read_replica_topic(self) -> None: | |||||
| } | ||||||
| rpk_rr_cluster.create_topic(self.topic_name, config=conf) | ||||||
| except: | ||||||
| self.logger.warn(f"Failed to create a read-replica topic") | ||||||
| self.logger.warn("Failed to create a read-replica topic") | ||||||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ruff linter unnecessary
Comment on lines
810
to
+811
|
||||||
| self.logger.warn("Failed to create a read-replica topic") | |
| self.logger.warning("Failed to create a read-replica topic", exc_info=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The inline comment references disabling retention.ms, but the code is setting retention.local.target.ms. Please update the comment to reflect the local retention setting to avoid confusion. For example: 'Disable time-based local retention for tiered storage by setting retention.local.target.ms to -1.'