-
Notifications
You must be signed in to change notification settings - Fork 98
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
fix: initialize inflightAcks channel to not nil channel #1548
Conversation
…to avoid hanging on cleanup function when there are no messages to acknowledge. Signed-off-by: Antonino Fugazzotto <antonino_fugazzotto@intuit.com>
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.
Why do we need inflightAcks
at first place? My understanding is Ack is a blocking call hence inflightAcks
should be either nil or closed. Am I missing anything? cc: @vigith
Based on this question, would it make more sense (or be preferred) to remove the inflight ack "check" in the Cleanup function (https://github.com/numaproj/numaflow/blob/main/pkg/sources/kafka/handler.go#L59)? |
or completely remove the var |
|
Signed-off-by: Vigith Maurice <vigith@gmail.com>
Signed-off-by: Antonino Fugazzotto <antonino_fugazzotto@intuit.com> Signed-off-by: Vigith Maurice <vigith@gmail.com> Co-authored-by: Vigith Maurice <vigith@gmail.com>
Closes #1529
Initialize inflightAcks channel to not nil channel to avoid hanging on cleanup function when there are no messages to acknowledge.
How to Test/Reproduce:
kubectl scale vtx <vtx_name> --replicas=12
)kafka_source_read_total
kafka_source_read_total
should show for all 10 partitions)