Open eduardodbr opened 10 months ago
Hi @eduardodbr Thank you for your issues, I have the same problem in EKS with benthos, "Pipeline has terminated. Shutting down the service" The problem is when Benthos not receive in input request or process automatically the service Benthos shutting down but if you want fix just add in your configMap after output: "shutdown_delay: 3600s" or more
Hello @Jeffail,
We have been seen similar issue sporadically ever since we upgraded benthos from 4.14 to 4.27. Benthos stops reading messages from SQS and we could see this error in the logs:
level=error msg="Failed to acknowledge message: context canceled" @service=benthos label="" path=root.input stream=ledger_balance_exported
The issue occurs in the stream that has high message load and doesn't occur all the time. Any help on this is appreciated.
Thanks, Anitha
It seems that sometimes the context is being canceled before the last message is ACKed in the child input of
read_until
.Steps to reproduce:
docker run -p 10000:10000 -p 10001:10001 -p 10002:10002 mcr.microsoft.com/azure-storage/azurite:3.27.0
az storage queue create --name test --account-name test --connection-string "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;QueueEndpoint=http://127.0.0.1:10001/devstoreaccount1;TableEndpoint=http://127.0.0.1:10002/devstoreaccount1;"
az storage message put -q test --content '{"foo":"bar"}' --account-name test --connection-string "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;QueueEndpoint=http://127.0.0.1:10001/devstoreaccount1;TableEndpoint=http://127.0.0.1:10002/devstoreaccount1;"
while doing this test multiple times, sometimes it ACKs the message and others the context is cancelled:
logs when fails:
logs when ACKs the message with success:
This was also verified when testing with AWS SQS input with localstack: