Skip to content
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

Merged
merged 2 commits into from
Apr 30, 2022
Merged

Conversation

LenaAn
Copy link
Contributor

@LenaAn LenaAn commented Apr 28, 2022

Cover letter

When trying to consume from blocked S3, time out error should be
returned

Release notes

  • none

firewall_blocked will be used also for shadow indexing test
@LenaAn LenaAn requested review from Lazin, ztlpn and jcsp and removed request for dotnwat April 28, 2022 17:06
Lazin
Lazin previously approved these changes Apr 28, 2022
Copy link
Contributor

@Lazin Lazin left a 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

Copy link
Contributor

@NyaliaLui NyaliaLui left a 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.

tests/rptest/tests/shadow_indexing_firewall_test.py Outdated Show resolved Hide resolved
tests/rptest/tests/shadow_indexing_firewall_test.py Outdated Show resolved Hide resolved
tests/rptest/tests/shadow_indexing_firewall_test.py Outdated Show resolved Hide resolved
Copy link
Member

@dotnwat dotnwat left a 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

@LenaAn
Copy link
Contributor Author

LenaAn commented Apr 29, 2022

looks like we're seeing one failure of one of the new tests

hmm haven't seen that on CDT, but I guess enabling deletion after segments are produced should help, will fix it

@LenaAn
Copy link
Contributor Author

LenaAn commented Apr 29, 2022

CI Failure not connected with new test: #4489

Copy link
Contributor

@jcsp jcsp left a 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused

Copy link
Contributor Author

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):
Copy link
Contributor

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

Copy link
Contributor Author

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@LenaAn
Copy link
Contributor Author

LenaAn commented Apr 29, 2022

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
@jcsp
Copy link
Contributor

jcsp commented Apr 29, 2022

Retried release-clang-arm64 for unrelated failure in coproc_fixture_rpunit

@LenaAn
Copy link
Contributor Author

LenaAn commented Apr 29, 2022

Unrelated coproc_fixture_rpunit failure: #4492

@LenaAn
Copy link
Contributor Author

LenaAn commented Apr 29, 2022

Build fails are #4317 and #4504

@dotnwat dotnwat dismissed their stale review April 30, 2022 00:37

ci failure fixed :)

@LenaAn LenaAn merged commit aaa9bec into redpanda-data:dev Apr 30, 2022
@LenaAn LenaAn deleted the si_blocked_s3 branch April 30, 2022 01:01
@NyaliaLui
Copy link
Contributor

/backport v21.1.x

@NyaliaLui
Copy link
Contributor

/backport v22.1.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cloud-storage Shadow indexing subsystem area/tests kind/enhance New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants