-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
autoDeleteOnIdle cannot be set on queue creation when also setting a dead letter forward #14539
Comments
…ear to take effect but don't actually alter the entity. Fixes Azure#14539
hi @hartwig-wutscher-ibm, I was able to replicate this bug and I really appreciate you taking the time to report it. The actual bug was with the way we're sending the ATOM requests, which handle the entity update you're trying to do. I've got a fix submitted in this PR(#14692). This bug was actually causing forwarding to not be properly setup, even though the API claimed that it was. With that said, the normal behavior of forwarding and autoDeleteOnIdle is actually correct, as explained here in the note at the end of the linked section. |
… bad property ordering in XML (#14692) The ordering of properties in the XML requests to the Service Bus ATOM API is significant and changing it can have side effects. In this instance, the ordering issues caused us to appear to have setup forwarding properly for a queue but forwarding was NOT actually enabled. Our previous testing missed this because this data actually round-trips properly through the API but it doesn't trigger whatever actual setting needs to happen to cause forwarding to happen. This PR reconciles our queue, topic and subscription entities ordering against the .net layer, which acts as the de-facto authority. Fixes #14539
#14692 is merged, we'll release a new version for the package soon. |
… bad property ordering in XML (Azure#14692) The ordering of properties in the XML requests to the Service Bus ATOM API is significant and changing it can have side effects. In this instance, the ordering issues caused us to appear to have setup forwarding properly for a queue but forwarding was NOT actually enabled. Our previous testing missed this because this data actually round-trips properly through the API but it doesn't trigger whatever actual setting needs to happen to cause forwarding to happen. This PR reconciles our queue, topic and subscription entities ordering against the .net layer, which acts as the de-facto authority. Fixes Azure#14539
AdminClient: ForwardTo wasn't applying on update due to bad property ordering in XML (#14692) The ordering of properties in the XML requests to the Service Bus ATOM API is significant and changing it can have side effects. In this instance, the ordering issues caused us to appear to have setup forwarding properly for a queue but forwarding was NOT actually enabled. Our previous testing missed this because this data actually round-trips properly through the API but it doesn't trigger whatever actual setting needs to happen to cause forwarding to happen. This PR reconciles our queue, topic and subscription entities ordering against the .net layer, which acts as the de-facto authority. Fixes #14539
… bad property ordering in XML (Azure#14692) The ordering of properties in the XML requests to the Service Bus ATOM API is significant and changing it can have side effects. In this instance, the ordering issues caused us to appear to have setup forwarding properly for a queue but forwarding was NOT actually enabled. Our previous testing missed this because this data actually round-trips properly through the API but it doesn't trigger whatever actual setting needs to happen to cause forwarding to happen. This PR reconciles our queue, topic and subscription entities ordering against the .net layer, which acts as the de-facto authority. Fixes Azure#14539
Hi! I've retested this using the above code with version 7.0.5 and the issue is persists, is the fix not yet published? from package-lock.json:
output:
|
@hartwig-wutscher-ibm - in your sample what you're running into is this behavior (this is copied from the service documentation here: https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-auto-forwarding#using-autoforwarding)
In this case when you do this: const props2 = await admin.createQueue('test-idle-out-deadletter', { autoDeleteOnIdle: 'PT20M', forwardDeadLetteredMessagesTo: 'deadletterqueue' }); You are effectively setting up auto-forwarding, which means that the autoDeleteOnIdle parameter will basically be ignored by the service. (If I am misunderstanding what you're asking, please let me know). |
Describe the bug
autoDeleteOnIdle cannot be set on queue creation when also setting a dead letter forward, it is always created with the maximum period value, on asb on login I can set autodelete for this kind of queue
To Reproduce
Steps to reproduce the behavior:
Output:
PT20M
P10675199DT2H48M5.4775807S
Expected behavior
Output:
PT20M
PT20M
The text was updated successfully, but these errors were encountered: