Skip to content
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

UpdateSubscriptionAsync method does not update AutoDeleteOnIdle properties #44458

Closed
liangdaxian opened this issue Jun 6, 2024 · 7 comments
Closed
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Bus

Comments

@liangdaxian
Copy link

Description

i am trying to using the admin api to update some subscription AutDeleteOnIdel time span, code snip as:

var subs = admin.GetSubscriptionsAsync(topicName).GetAsyncEnumerator();
while (subs.MoveNextAsync().AsTask().Result)
{
var subdetails = admin.GetSubscriptionAsync(topicName, subs.Current.SubscriptionName).Result.Value;

subdetails.AutoDeleteOnIdle = TimeSpan.FromDays(90);

var updated = admin.UpdateSubscriptionAsync(subdetails).Result.Value;

Console.Out.WriteLine($"Sub {subdetails.SubscriptionName} in {subdetails.TopicName} updated autodelete on idle");

}

however the code runs fine but AutoDeleteOnIdle was not actually updated

using

@EldertGrootenboer EldertGrootenboer transferred this issue from Azure/azure-service-bus Jun 7, 2024
@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Bus labels Jun 7, 2024
Copy link

github-actions bot commented Jun 7, 2024

Thank you for your feedback. Tagging and routing to the team member best able to assist.

@ArthurMa1978
Copy link
Member

Hey @liangdaxian , are you inquiring about the Azure.Messaging.ServiceBus library?
GetSubscriptionsAsync
UpdateSubscriptionAsync

@ArthurMa1978 ArthurMa1978 added Client This issue points to a problem in the data-plane of the library. and removed Mgmt This issue is related to a management-plane library. labels Jun 11, 2024
@ArthurMa1978 ArthurMa1978 assigned jsquire and unassigned ArthurMa1978 Jun 11, 2024
@jsquire
Copy link
Member

jsquire commented Jun 11, 2024

@liangdaxian: Please clarify which package and version you're using.

@jsquire jsquire added the needs-author-feedback Workflow: More information is needed from author to address the issue. label Jun 11, 2024
@github-actions github-actions bot removed the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Jun 11, 2024
Copy link

Hi @liangdaxian. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

@liangdaxian
Copy link
Author

liangdaxian commented Jun 11, 2024

hi i think i put it under desc but get trunked:

using Azure.Messaging.ServiceBus version="7.17.5" targetFramework="net48"

@github-actions github-actions bot added needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team and removed needs-author-feedback Workflow: More information is needed from author to address the issue. labels Jun 11, 2024
@jsquire
Copy link
Member

jsquire commented Jun 11, 2024

I've confirmed that the autoDeleteOnIdle property is defined in the service spec and that the payload is being formatted correctly by the client. This looks to be an issue with the Service Bus ATOM service.

@EldertGrootenboer: Not sure why this was transferred over to the client repository, but I'm going to send it back, as it requires service investigation.

@jsquire
Copy link
Member

jsquire commented Jun 11, 2024

This issue has been transferred to the Azure Service Bus repository for service team investigation as #711.

@jsquire jsquire closed this as completed Jun 11, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Bus
Projects
None yet
Development

No branches or pull requests

3 participants