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

KAFKA-17299: add unit tests for previous fix #17919

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

Conversation

mjsax
Copy link
Member

@mjsax mjsax commented Nov 23, 2024

#17899 fixed the issue, but did not add any unit tests.

apache#17899 fixed the issue, but did not
add any unit tests.
@mjsax mjsax added streams tests Test fixes (including flaky tests) labels Nov 23, 2024
record = queue.poll(wallClockTime);

if (record != null) {
--totalBuffered;
totalBuffered -= (oldSize - queue.size());
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a follow up fix: when we skip more than one corrupted record, we don't update the buffer size correctly.

private final TopicPartition partition1 = new TopicPartition(topic1, 1);
private final TopicPartition partition2 = new TopicPartition(topic2, 1);
private final TopicPartition partition1 = new TopicPartition(topic1, 0);
private final TopicPartition partition2 = new TopicPartition(topic2, 0);
Copy link
Member Author

Choose a reason for hiding this comment

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

Side cleanup -- not sure why we use partition number 1, but not 0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
streams tests Test fixes (including flaky tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant