-
Notifications
You must be signed in to change notification settings - Fork 1.1k
KafkaMessageSource Blocks on Initial Poll When No Records #3637
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
Comments
garyrussell
added a commit
to garyrussell/spring-integration
that referenced
this issue
Sep 30, 2021
Resolves spring-projects#3637 If there are no records to receive, the poll blocked for `20*pollTimeout`. Wake the consumer during partition assignment; however, this changes the behavior when there are records present - the first poll always returns no records. Detect that the wakeup was due to assignment and perform another poll. **cherry-pick to 5.4.x**
garyrussell
added a commit
to garyrussell/spring-integration
that referenced
this issue
Sep 30, 2021
Resolves spring-projects#3637 If there are no records to receive, the poll blocked for `20*pollTimeout`. Wake the consumer during partition assignment; however, this changes the behavior when there are records present - the first poll always returns no records. Detect that the wakeup was due to assignment and perform another poll. Also add some debug logging, and don't create a new consumer if the source was stopped. **cherry-pick to 5.4.x**
artembilan
pushed a commit
that referenced
this issue
Sep 30, 2021
Resolves #3637 If there are no records to receive, the poll blocked for `20*pollTimeout`. Wake the consumer during partition assignment; however, this changes the behavior when there are records present - the first poll always returns no records. Detect that the wakeup was due to assignment and perform another poll. Also add some debug logging, and don't create a new consumer if the source was stopped. **cherry-pick to 5.4.x**
artembilan
pushed a commit
that referenced
this issue
Sep 30, 2021
Resolves #3637 If there are no records to receive, the poll blocked for `20*pollTimeout`. Wake the consumer during partition assignment; however, this changes the behavior when there are records present - the first poll always returns no records. Detect that the wakeup was due to assignment and perform another poll. Also add some debug logging, and don't create a new consumer if the source was stopped. **cherry-pick to 5.4.x**
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
5.5.4.RELEASE
KMS increases the poll timeout for the first poll (assignment).
With the default
pollTimeout
(5s), when there are no records, the poll blocks for 100s.This causes a delay, for example, with a
PollableConsumer
in SCSt the poll is not responsive.Wake the consumer when the partitions are assigned.
The text was updated successfully, but these errors were encountered: