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

fix: reseed for each auto id on 3.6 to avoid collisions #388

Merged
merged 6 commits into from Jul 7, 2021

Conversation

crwilcox
Copy link
Contributor

@crwilcox crwilcox commented Jul 2, 2021

Fixes #346 🦕

Upon further investigation, this is only an issue for python 3.6. In 2022, when 3.6 is no longer supported, this patch could be removed.

@crwilcox crwilcox requested a review from a team July 2, 2021 23:02
@crwilcox crwilcox requested a review from a team as a code owner July 2, 2021 23:02
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 2, 2021
@product-auto-label product-auto-label bot added the api: firestore Issues related to the googleapis/python-firestore API. label Jul 2, 2021
@crwilcox crwilcox changed the title fix: reseed for each auto id using a threadsafe uuid fix: reseed for each auto id on 3.6 to avoid collisions Jul 6, 2021
@crwilcox crwilcox added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 7, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 7, 2021
Copy link
Contributor

@craiglabenz craiglabenz left a comment

Choose a reason for hiding this comment

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

Pseudorandom? More like SUDOrandom, amirite?

@crwilcox crwilcox merged commit 784e8ae into googleapis:master Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the googleapis/python-firestore API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New document ID not unique after fork
4 participants