-
Notifications
You must be signed in to change notification settings - Fork 850
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
[azservicebus] ASB client stopped receiving messages for its subscription. #17408
Comments
Just wanted to confirm, are you sure this log comes from a machine running 0.3.6? We had a bug where we were retrying when a message lock was lost in 0.3.6 and your log looks like it doesn't have that bug. Is it possible this log is coming from an earlier version of the package? There were some substantial improvements in 0.3.6's reliability (ignoring the bug) and even more are coming in the release next week (0.3.7). |
Thanks for the reply. I have checked again and it is 0.3.6 tag we were using at that period. |
Faced the same issue, also using 0.3.6 I'm now updating to 0.4.0, hope it fixes |
If either of you is able to capture this failure in a log that would help. We did fix this particular issue in 0.4.0: "Fixed issue where a message lock expiring would cause unnecessary retries. These retries could cause message settlement calls (ex: Receiver.CompleteMessage) to appear to hang. (#17382)" Which could explain the reason why it seems to hang. What you'd see in the log (if this were the case) is several retries, with a 410 error being the underlying cause. Now, with that fix in the way this does happen because of a lock expiration, which could indicate that you need to call receiver.RenewLock() if you plan on processing longer than your configured lock period on your queue/subscription. |
Hello @richardpark-msft I have a service running for 4 days and it is still consuming properly with 0.4.0. I think it fixed |
Hi all, I believe we're at the point where we've investigated and fixed the original issue. I'm closing this, but we can re-open in the future if this comes back. |
Hi @richardpark-msft , we are already on to SDK version: v0.4.0, golang version 1.18.1, and we observed the same issue a couple of times recently. This time we had the sdk debug logs enabled too. Let me explain the nature of this issue. From our application logic what we does is we call the In the following log, the pause happened for the message under the ID : |
Bug Report
pkg: github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus
SDK version: v0.3.6
go version: go 1.16.13
What happened?
One of the ASB clients does not receive any messages for one of its subscriptions.
In the our environment, there are separate instances running where each instance subscribes to a set of topics. And for a given topic each instance creates its own subscription. Hence the subscription remains unique for each instance. In our environment, we noticed that one ASB client failed to retrieve messages for the topic called notification, but the other instances were able to. In the meantime, we observed that this issue was not there for other topics which it subscribed. [1]
Error:
No specific Error message
What did you expect or want to happen?
If there are events for the topic queued under a given subscription, we expect to receive all those events until our application is killed/exited.
Anything we should know about your environment.
Our service is running on AKS
Logs:
query_data_asb_issue_3.csv
[1] https://github.com/wso2/product-microgateway/blob/ddc47b9c07397d44d50659e0fb1248a1fee76656/adapter/pkg/messaging/azure_listener.go#L70
The text was updated successfully, but these errors were encountered: