-
Notifications
You must be signed in to change notification settings - Fork 498
refactor(tool): adjust consume logic in automq-perf-test.sh
tool
#2900
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
base: main
Are you sure you want to change the base?
Conversation
bucket.consume(1); | ||
counter.increment(); | ||
if ((counter.sum()) % 1000 == 0) { | ||
bucket.consume(1); |
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.
Invoke bucket#consume in pollRecords
993f3bf
to
3f8749c
Compare
TopicPartition topicPartition = new TopicPartition(record.topic(), record.partition()); | ||
callback.messageReceived(topicPartition, record.value(), sendTimeNanos); | ||
bytes += record.value().length; | ||
callback.batchMessagesReceived(topicPartition); |
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.
batchMessagesReceived?
if (numMessages == 0) { | ||
continue; | ||
} | ||
ConsumerRecord<String, byte[]> firstRecord = records.iterator().next(); |
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.
The first record sendTimeNanos could be set in the for loop
No description provided.