azure-sdk-for-go: Notification Hub Namespaces Delete Future is broken

Bug Report

  • import path of package in question: github.com/Azure/azure-sdk-for-go/services/notificationhubs/mgmt/2017-04-01/notificationhubs
  • SDK version: v18.0.0
  • output of 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.

* azurerm_notification_hub_namespace.test: Error waiting for the deletion of Notification Hub Namespace "acctestnhn-7935624892261362245" (Resource Group "acctestrg-7935624892261362245"): Future#WaitForCompletion: context has been cancelled: StatusCode=202 -- Original Error: context deadline exceeded

~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: https://github.com/terraform-providers/terraform-provider-azurerm/pull/1589

Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (11 by maintainers)

Most upvoted comments

Marking this old issue as addressed. If the bug still reproduces on current SDK and service please open a new issue