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

Dataproc autogen bucket changes #1171

Merged
merged 5 commits into from
Mar 13, 2018
Merged

Conversation

danawillow
Copy link
Contributor

@danawillow danawillow commented Mar 8, 2018

This PR does two things:

  1. Deprecates delete_autogen_bucket. This shouldn't really be an option- clusters in the same region all share the same autogenerated bucket, so if we delete it then it's unclear what would happen to other dataproc clusters in that region. There's not really much harm in keeping it around, since there's only one per region.
  2. In the meantime, adds a bit of waiting for objects in the bucket to be deleted. Object deletion is asynchronous, but doesn't provide any sort of wait operation. Instead, we'll list the objects until it returns that it's empty. Since we're deprecating the feature anyway, we don't necessarily need this part, but I left it in just in case.

@danawillow danawillow changed the title add extra wait for storage bucket object deletion in dataproc WIP: add extra wait for storage bucket object deletion in dataproc Mar 8, 2018
@danawillow danawillow changed the title WIP: add extra wait for storage bucket object deletion in dataproc Dataproc autogen bucket changes Mar 9, 2018
@danawillow danawillow requested a review from paddycarver March 9, 2018 03:33
Copy link
Contributor

@paddycarver paddycarver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that deprecation message could be much-improved by linking to the documentation in question, pointing out a workaround, or adding a next step to help users that are confused as to how to go about updating to take the deprecation into account.

Type: schema.TypeBool,
Optional: true,
Default: false,
Deprecated: "see documentation",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A link to the documentation here would be great.

@danawillow
Copy link
Contributor Author

Added more context to the deprecation message.

@danawillow danawillow merged commit 99860f3 into hashicorp:master Mar 13, 2018
@danawillow danawillow deleted the dataprocbucket branch March 13, 2018 18:46
ashish-amarnath pushed a commit to ashish-amarnath/terraform-provider-google that referenced this pull request Mar 20, 2018
* add extra wait for storage bucket object deletion

* make timeout for object deletion 5 minutes, make it succeed 3 times

* delete the cluster before deleting the bucket

* deprecate delete_autogen_bucket

* improve deprecation message
chrisst pushed a commit to chrisst/terraform-provider-google that referenced this pull request Nov 9, 2018
* add extra wait for storage bucket object deletion

* make timeout for object deletion 5 minutes, make it succeed 3 times

* delete the cluster before deleting the bucket

* deprecate delete_autogen_bucket

* improve deprecation message
@ghost
Copy link

ghost commented Mar 29, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants