-
Notifications
You must be signed in to change notification settings - Fork 577
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
ducky: add si test with blocked s3 #4478
Conversation
firewall_blocked will be used also for shadow indexing test
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.
LGTM, one small question
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.
Looking good! I left a few comments for removing redundant code.
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.
looks like we're seeing one failure of one of the new tests
test_id: rptest.tests.shadow_indexing_firewall_test.ShadowIndexingFirewallTest.test_consume_from_blocked_s3
--
| status: FAIL
| run time: 2 minutes 38.924 seconds
|
|
| TimeoutError('Segments were not created')
| Traceback (most recent call last):
| File "/usr/local/lib/python3.9/dist-packages/ducktape/tests/runner_client.py", line 135, in run
| data = self.run_test()
| File "/usr/local/lib/python3.9/dist-packages/ducktape/tests/runner_client.py", line 227, in run_test
| return self.test_context.function(self.test)
| File "/root/tests/rptest/services/cluster.py", line 35, in wrapped
| r = f(self, *args, **kwargs)
| File "/root/tests/rptest/tests/shadow_indexing_firewall_test.py", line 73, in test_consume_from_blocked_s3
| produce_until_segments(redpanda=self.redpanda,
| File "/root/tests/rptest/util.py", line 112, in produce_until_segments
| wait_until(done,
| File "/usr/local/lib/python3.9/dist-packages/ducktape/utils/util.py", line 58, in wait_until
| raise TimeoutError(err_msg() if callable(err_msg) else err_msg) from last_exception
| ducktape.errors.TimeoutError: Segments were not created
hmm haven't seen that on CDT, but I guess enabling deletion after segments are produced should help, will fix it |
CI Failure not connected with new test: #4489 |
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.
Just a few dead lines of code to remove
si_settings = SISettings(cloud_storage_reconciliation_interval_ms=500, | ||
cloud_storage_max_connections=5, | ||
log_segment_size=self.log_segment_size) | ||
self.s3_bucket_name = si_settings.cloud_storage_bucket |
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.
Unused
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.
fixed!
self.kafka_tools = KafkaCliTools(self.redpanda) | ||
self.rpk = RpkTool(self.redpanda) | ||
|
||
def tearDown(self): |
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.
No need to override if it's just calling the parent
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.
fixed! Thanks!
|
||
self._s3_port = si_settings.cloud_storage_api_endpoint_port | ||
|
||
self.kafka_tools = KafkaCliTools(self.redpanda) |
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.
Unused
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.
fixed
Not I'm setting retention only after all segments are produced, also waiting for only one segment to be deleted. Now the test should be more stable. It passed 50 times out of 50 in CDT and 10 times out of 10 locally. Let's see how it behaves on CI |
When trying to consume from blocked S3, time out error should be returned
Retried release-clang-arm64 for unrelated failure in coproc_fixture_rpunit |
Unrelated |
/backport v21.1.x |
/backport v22.1.x |
Cover letter
When trying to consume from blocked S3, time out error should be
returned
Release notes