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

fix: always ack message #138

Closed
wants to merge 1 commit into from
Closed

Conversation

yordis
Copy link
Contributor

@yordis yordis commented Sep 26, 2022

Changes

Always ack message to move the consumer offset forward.

Why Are Changes Being Made

Please validate my assumption If you must ack the message to move the consumer offset regardless of a failure, you can potentially queue the system forever when a loss is expected.

The failures are being logged today, so it should be good from that end.

The final solution would be to move the message into A DLQ (Dead-Letter Queue) in the case of a failure.

@@ -186,6 +186,7 @@ func contains(err error, options ...string) bool {
}

func (fr *FileReceiver) processMessage(msg *pubsub.Message) error {
msg.Ack()
Copy link
Member

Choose a reason for hiding this comment

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

We used to ack this early and it caused a bunch of issues. We'd silently ignore invalid events and skip events during crashes/shutdowns.

b6d63fc and d087a2b were previous changes around this.

@adamdecaf
Copy link
Member

I've combined this into #140

@adamdecaf adamdecaf closed this Sep 27, 2022
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.

None yet

2 participants