Skip to content

Add support for reusing topics in catch-up read testing #2495

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

Conversation

sakshamVerma08
Copy link

This PR addresses the issue of time-consuming performance tests when testing "catch-up read" scenarios. Currently, each test run requires spending significant time to accumulate messages, which slows down testing. This PR adds the ability to reuse existing topics with accumulated messages, eliminating the wait time.

Issue: #2373

Added a new command-line parameter --catchup-topic-prefix that allows users to specify topics to reuse for catch-up read testing. When this parameter is provided and topics matching the prefix exist:

  1. The script reuses these topics instead of creating new ones
  2. The message accumulation phase is skipped
  3. Consumers are reset to read from the beginning of the topics

This significantly speeds up testing by eliminating the wait time for message accumulation.

@SCNieh
Copy link
Contributor

SCNieh commented May 5, 2025

@sakshamVerma08 Hi, thanks for your work, but your code seems incomplete and maybe you have missed some commits? The current one just added some variables and method that never been used, plus please do not modify the README.

@SCNieh
Copy link
Contributor

SCNieh commented May 5, 2025

@sakshamVerma08 please try to build and test your code and ensure it's able to run before submit a PR, submiting invalid code will be a great waste of time for the maintainer of this community, this PR will be closed.

@SCNieh SCNieh closed this May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants