-
Notifications
You must be signed in to change notification settings - Fork 455
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
Same message process 2 times #2792
Comments
Looking at those logs I see the invocations for the 2 ids you provided and they're both successful, but we don't log any details of your message payloads etc. so I can't see evidence that these were for the same message (same message ID). How do you know these invocations are for the same message? If you have a consistent repro, perhaps you can log the message ID out in your function and share those logs - showing two separate successfull invocations for the exact same SB message ID. Also can you share your function definition/signature and any other code required to repro this? |
Please check the LockDuration configured on your ServiceBus Topic, as well as the AutoRenewTimeout configured in your host.json. If you're not dealing with a case where the first invocation failed and another retry invocation would therefore be expected, the only other reason the same message would be reprocessed is if the message lock was lost. |
Closing this since I believe this issue is due to message locks being lost due to incorrectly configured settings. I did make a fix for Azure/azure-webjobs-sdk#1703 which will make these issue easier to diagnose in the future. After examining your configuration and fixing any issues there, if you still have problems and have a repro showing there is an issue with the binding, please reopen with more details. |
Hi @mathewc , We have also raised ticket to Microsoft Support, Ticket number: 118051718206584. We have also confirmed that the message is same which is getting processed twice. Please let me know if you need more info. |
The change I mentioned above for Azure/azure-webjobs-sdk#1703 should start rolling out next week, and that will improve visibility into underlying errors (message lock lost errors due to long executions) which is the reason for messages being reprocessed. You'll see those errors in your logs, whereas currently you don't. Before that is deployed, we can look at your execution durations to see if there aren't some that are running longer than expected, leading to lock expiry and reprocessing. You provided your app info above - please provide an updated time range where you're seeing this problem, and we can check the logs. |
@mathewc , Thanks for reply. Time when the message is processed first time 2018-05-23T13:46:47.3260000Z Please let me know if you need more info |
Hi @mathewc : we are facing the same issue even with the latest version of Azure functions Sdk. I have the logs which show that the same message was processed multiple times by function and there were no exceptions in any of the executions. The delivery count of the message also increased each time. |
Hi @mathewc, we are having the same issue. Logs are showing same function executed multiple times for the same message. Subscription: SUB BIBBYFS ITS-ITOPS OPS LIVE Example: Can I please get your help on this? |
I have a function app which is working on Service Bus Topic binding, i am observing issue on our QC environment with function app trigger is processing the same message 2 times. the overall execution of request is 9 to 10 second.
First i thought it maybe due to the lock expiry message is getting process twice. after analyzing the request logs i found the difference between in both the invocation is 2 second.
Function app details are:
The text was updated successfully, but these errors were encountered: