-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Failing test(s): TestAccBigQueryDatasetAccess_authorizedRoutine #13023
Failing test(s): TestAccBigQueryDatasetAccess_authorizedRoutine #13023
Comments
Looking into this - it seems to be an ordering issue of some kind. In CI, the test does actions in the following order:
When I run this locally, these requests happen in the following order:
|
TestAccBigQueryDatasetAccess_authorizedRoutine Google Cloud - 100% failure Google Cloud Beta - 100% failure |
b/261390516 |
It looks like the PUT is happening because the dataset is created with a description, but the "destroy" config does not include a description, so it is trying to update the dataset to remove it. So I think Stephen's thought is exactly right that this is a timing issue, where we do not know if the PATCH or PUT will happen first, and they actually probably are requested at almost the same exact time. I've verified that we can fix the test by removing the description, so that the PUT is not needed, but this doesn't offer any help for users that may legitimately want to update a dataset and remove an access in the same config change. I'm thinking that a mutex may be the best solution, to ensure that PUT/PATCH calls are made serially on the dataset. |
After digging a bit more, this is more complicated than a simple mutex, because:
I attempted to find precedence for this, but didn't come across anything. I think the best option would be to change the dataset resource to use a PATCH instead of PUT, and then allow subsequent reads to pick up that the access block was removed. However, this seems like a bigger change to make, and may come with other implications. Lastly, we do have this note in our docs which kinda covers this:
|
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. |
Affected Resource(s)
Failure rate: 100%
Impacted tests:
Nightly builds:
Message:
Reverted this for
4.44.0
The text was updated successfully, but these errors were encountered: