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

fixup kraft #224

Merged
merged 5 commits into from
Oct 18, 2022
Merged

fixup kraft #224

merged 5 commits into from
Oct 18, 2022

Conversation

twmb
Copy link
Owner

@twmb twmb commented Oct 18, 2022

This merges #223 and adds a bunch of preceding commits that should address test failures.

twmb added 2 commits October 18, 2022 16:57
Single-broker localhost kraft testing shows this error being returned
**much** more frequently. Rather than having a 5s timeout, we now
continue until the input context is canceled. This largely affects
ending a transaction.

We also improve the locking situation in one area. It's a bit ugly, but
the solution is better than unlocking directly at every return site.

For #223.
twmb and others added 3 commits October 18, 2022 17:01
If a topic is deleted while being consumed, brokers will suddently
return UNKNOWN_TOPIC_OR_PARTITION. This error is retriable and the
partition is internally stripped. This would cause a fetch to finish
immediately and re-fetch, which would spin.

We now backoff if all partitions are stripped.
Kraft sometimes returns UNKNOWN_TOPIC_OR_PARTITION for a while even
after it replies to a create topics request with success. We now retry
these errors forever.

Also, something about Kraft sometimes hangs when transitioning
transaction states. We need RequireStableFetchOffsets to ensure our
tests do not fail.
@twmb twmb mentioned this pull request Oct 18, 2022
@twmb twmb merged commit 9387634 into master Oct 18, 2022
@twmb twmb deleted the fixup-kraft branch October 18, 2022 23:14
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