-
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
[service-bus] topic subscription receives messages even with option status=Disabled #12345
Comments
Thanks for reaching out @xavier-d! We'll check with the service team on the "Disabled" behavior and get back. |
I was expecting to use this feature in order get only the messages I want; Create the subscription as Disabled then update the rule as I want. 'SendDisabled' option has been tested and not working either. |
As per the service team, EntityStatus only affects SENDs/ RECEIVEs coming from external clients, messages going from topic to subscriptions are not affected by it.
For your use case, the only solution as of now would be to add a rule after creation. |
Also, may I just say a thank you for trying out our previews! |
Keeping the issue open to track the feature support. |
…ption (#12495) ### Issue #12345 Adding support to allow configuring the rule with createSubscription by taking the [XML request](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/tests/SessionRecords/ServiceBusManagementClientLiveTests/BasicRuleCrudOperationsAsync.json#L66-L71) from .NET SDK as reference. (Thanks @JoshLove-msft)
#12495 fixes this. Please watch out for the 7.0.0 release for the fix. |
@xavier-d Meanwhile, if you want to try out the changes, you can use our nightly dev build as well. Install the package using Disclaimer: Do NOT use the dev build in production :) |
It's(dev version) not released yet. I'll ping once done. |
Thanks for the dev. |
The dev version got published const adminClient = new ServiceBusAdministrationClient(connectionString);
await adminClient.createSubscription("topic-name", "subscription-name", {
defaultRuleOptions: {
name: "rule-name",
filter: { sqlExpression: "1=2" },
},
}); |
[Datadog] Add api version parameter (Azure#12345)
Describe the bug
While creating a subscription on a Topic Service Bus with many incoming messages even with disabled status option, messages are received.
To Reproduce
use a service bus with many activity
Expected behavior
By setting "Disabled" status we should not have any messages at all.
The text was updated successfully, but these errors were encountered: