Skip to content

feat: For the performance test shell script, add a prefix that can reuse the created topic #2401

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Captain-Slacker-OwO
Copy link

@Captain-Slacker-OwO Captain-Slacker-OwO commented Apr 2, 2025

This pull request attempts to resolve #2373 .

@Captain-Slacker-OwO Captain-Slacker-OwO changed the title feat:add new prefix feat: support reusable topic prefixes Apr 2, 2025
@Captain-Slacker-OwO Captain-Slacker-OwO changed the title feat: support reusable topic prefixes feat: Add a prefix that can reuse the topic for the automq performance test module Apr 3, 2025
@Captain-Slacker-OwO Captain-Slacker-OwO changed the title feat: Add a prefix that can reuse the topic for the automq performance test module feat: For the performance test shell script, add a prefix that can reuse the created topic Apr 3, 2025
Comment on lines +1 to +3
tasks.withType(JavaCompile) {
options.compilerArgs += ["-Xlint:-this-escape"]
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Disabling -Xlint:this-escape globally is not recommended, as it suppresses critical warnings about unsafe object initialization (e.g., this escaping constructors before full initialization). This could hide concurrency risks.

Instead, consider using @SuppressWarnings("this-escape") locally if unavoidable, but prioritize fixing the root cause for safer code.

Comment on lines +131 to +139
// Modified producer start logic
Function<String, List<byte[]>> payloads = payloads(config, topics);
producerService.start(payloads, config.sendRate);
if (config.catchupTopicPrefix != null) {
LOGGER.info("Starting catchup test with existing topics");
producerService.start(payloads, config.sendRate);
} else {
LOGGER.info("Starting normal test with new topics");
producerService.start(payloads, config.sendRate);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the purpose of this code modification?

@Chillax-0v0 Chillax-0v0 requested a review from Copilot April 9, 2025 06:33
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • s3stream/build.gradle: Language not supported

Function<String, List<byte[]>> payloads = payloads(config, topics);
producerService.start(payloads, config.sendRate);
if (config.catchupTopicPrefix != null) {
Copy link
Preview

Copilot AI Apr 9, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider checking if config.catchupTopicPrefix is not only non-null but also non-empty, to maintain consistency with the validation logic in PerfConfig.java.

Suggested change
if (config.catchupTopicPrefix != null) {
if (!Strings.isNullOrEmpty(config.catchupTopicPrefix)) {

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

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.

[Good First Issue] Add Support for Specifying Topic Prefix for Catch-up Reading in Performance Test
2 participants