Skip to content

Conversation

@izeigerman
Copy link
Member

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

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

should we try a couple times?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not really. If a transaction fails because of this reason, it means that the other concurrent transaction succeeds and the schema gets created. Next time we retry, the IF NOT EXISTS check will work correctly. My current understanding is that one retry should be enough at all times.

@izeigerman izeigerman force-pushed the workaround-create-schema-race-condition branch from 74d80db to e1e8dd5 Compare February 8, 2023 23:11
@izeigerman izeigerman merged commit a2c8760 into main Feb 8, 2023
@izeigerman izeigerman deleted the workaround-create-schema-race-condition branch February 8, 2023 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants