Skip to content

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

Merged
crwilcox merged 6 commits intogoogleapis:masterfrom
crwilcox:fix-seed-collisions
Jul 7, 2021
Merged

fix: reseed for each auto id on 3.6 to avoid collisions#388
crwilcox merged 6 commits intogoogleapis:masterfrom
crwilcox:fix-seed-collisions

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 force-pushed the fix-seed-collisions branch from 21008ef to 6524b10 Compare July 2, 2021 23:03
@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