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

Consumer hang after failed to delete delivery from SQS FIFO #1049

Open
feelinc opened this issue Mar 17, 2019 · 0 comments
Open

Consumer hang after failed to delete delivery from SQS FIFO #1049

feelinc opened this issue Mar 17, 2019 · 0 comments

Comments

@feelinc
Copy link

feelinc commented Mar 17, 2019

Hi,

I tried using release v.1.5.1 and latest, with below SQS config

`var sqsClient = sqs.New(session.Must(session.NewSession(&aws.Config{
Region: aws.String("YOUR_AWS_REGION"),
Credentials: credentials.NewStaticCredentials("YOUR_AWS_ACCESS_KEY", "YOUR_AWS_ACCESS_SECRET", ""),
HTTPClient: &http.Client{
Timeout: time.Second * 120,
},
})))

var visibilityTimeout = 20

&machineryCfg.SQSConfig{
Client: sqsClient,
VisibilityTimeout: &visibilityTimeout,
WaitTimeSeconds: 10,
}`

The consumer just hang If a task took more than 20 seconds to complete, and need to restart the consumer manually.

The SQS error
ERROR: 2019/03/17 04:14:27 sqs.go:232 error when deleting the delivery. the delivery is { Messages: [{ Attributes: { SentTimestamp: "1552751115642" }, Body: "{}", MD5OfBody: "", MessageId: "", ReceiptHandle: " }] }

The solution for now is to increase visibilityTimeout to prevent the consumer from hang.

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

No branches or pull requests

1 participant