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

rptest: Fix throttling test #17474

Merged
merged 1 commit into from
Mar 29, 2024
Merged

rptest: Fix throttling test #17474

merged 1 commit into from
Mar 29, 2024

Conversation

dotnwat
Copy link
Member

@dotnwat dotnwat commented Mar 28, 2024

Avoid restarting redpanda durint the e2e test. Restart resets the metrics and the second run of the consumer after restart is not guaranteed to hit throttling because the data is cached.

Fixes: #14139

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.3.x
  • v23.2.x

Release Notes

  • none

Avoid restarting redpanda durint the e2e test. Restart resets the
metrics and the second run of the consumer after restart is not
guaranteed to hit throttling because the data is cached.
Comment on lines -1391 to -1400
self.logger.info("Stop nodes")
for node in self.redpanda.nodes:
self.redpanda.stop_node(node, timeout=120)

self.logger.info("Start nodes")
for node in self.redpanda.nodes:
self.redpanda.start_node(node, timeout=120)

self.logger.info("Restart consumer")
self.consume()
Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense. This makes me wonder why we restarted in the first place 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

yeh not sure. probably copy/paste

@dotnwat
Copy link
Member Author

dotnwat commented Mar 29, 2024

/ci-repeat 2
skip-units
dt-repeat=10
tests/rptest/tests/e2e_shadow_indexing_test.py::EndToEndThrottlingTest.test_throttling

@Lazin Lazin merged commit eb320d9 into redpanda-data:dev Mar 29, 2024
18 checks passed
@vbotbuildovich
Copy link
Collaborator

/backport v23.3.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants