-
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
Notification Hub Namespaces Delete Future is broken #2254
Comments
👋 Doesn't seem like a Swagger error to me! That means @jhendrixMSFT and I are on the case. Looking at your PR, could you tell me a little bit more about how the |
If you're pretty confident that Mind checking your client's From there we can look into whether or not Future's implementation is being wonky for you. |
👋🏻 hey @marstr Sorry I’d meant to provide more info for how we ended up working around this; after some experimentation I noticed if we repeatedly call the Delete method (and then poll ourselves to verify this has gone) this seems to eventually take place, which makes me wonder if this is a service issue instead? Unfortunately I’ve not had time to investigate either way Hope that helps! |
Oh oh, that's very interesting. So I've actually got it backwards (sorry about that), you're not having trouble with premature polling cancellation from the Future. You're having trouble with either: |
I think there's something screwy with the swagger/codegen? I created a simple repro to create a namespace then delete it and the delete times out, plus I still see it in the portal. If I delete it via the portal it takes about a minute or two. So seems like the call to delete isn't really doing anything useful. |
Network trace seems to indicate that the portal and SDK do the same thing. When experimenting with my test program I've noticed that sometimes if click on the namespace in the portal while the future is polling the delete succeeds. |
@matt-gibbs to summarize, if I create a namespace then delete it the delete never happens and the SDK times out waiting for the async operation to complete. When the |
investigating |
@matt-gibbs any update? |
@matt-gibbs Can this issue be resolved? |
Howdy - lot's has changed in the last few years. I actually ended up moving to work for @matt-gibbs on Notification Hubs, before he moved to GitHub. Without getting into detail - enough has changed in our RP that there's no reason to believe that a bug this old is still applicable. We should close it as stale. |
Marking this old issue as addressed. If the bug still reproduces on current SDK and service please open a new issue |
Hi @tombuildsstuff. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “ |
Hi @tombuildsstuff. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “ |
Hi @tombuildsstuff, since you haven’t asked that we “ |
Bug Report
github.com/Azure/azure-sdk-for-go/services/notificationhubs/mgmt/2017-04-01/notificationhubs
v18.0.0
go version
:go version go1.10.2 darwin/amd64
👋
Whilst working on support for Notification Hubs within Terraform - I've noticed the delete future seems to hang for the lifetime of the context passed in, and eventually fails with the following error; but only ~50% of the time.
In the interim I've worked around this by polling for the Notification Hub Namespace ourselves until we get a 404(update: maybe not) - but I can't tell if the Swagger or the API needs to be fixed here?Relevant link from our side:
hashicorp/terraform-provider-azurerm#1589
Thanks!
The text was updated successfully, but these errors were encountered: