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

workload/schemachanger: ignore unique violation errors for CREATE INDEX #130351

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

fqazi
Copy link
Collaborator

@fqazi fqazi commented Sep 9, 2024

Previously, the schema changer workload added logic to ignore potential unique violation errors during CREATE UNIQUE INDEX. This logic was for the statement phase, which is not when this error would be noticed, so it did not work correctly. To address this, this patch adds the logic to make unique violations error as potential commit error for CREATE INDEX.

Fixes: #129366

Release note: None

Previously, the schema changer workload added logic to ignore potential
unique violation errors during CREATE UNIQUE INDEX. This logic was for
the statement phase, which is not when this error would be noticed, so
it did not work correctly. To address this, this patch adds the logic to
make unique violations error as  potential commit error for CREATE
INDEX.

Fixes: cockroachdb#129366

Release note: None
@fqazi fqazi requested a review from a team September 9, 2024 18:49
@fqazi fqazi requested a review from a team as a code owner September 9, 2024 18:49
@fqazi fqazi requested review from herkolategan and renatolabs and removed request for a team September 9, 2024 18:49
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@annrpom annrpom left a comment

Choose a reason for hiding this comment

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

lgtm! shall we backport as well?

@fqazi fqazi added backport-24.1.x Flags PRs that need to be backported to 24.1. backport-24.2.x Flags PRs that need to be backported to 24.2 labels Sep 9, 2024
@fqazi
Copy link
Collaborator Author

fqazi commented Sep 9, 2024

@annrpom TFTR!

bors r+

craig bot pushed a commit that referenced this pull request Sep 9, 2024
130039: logical: Test different connected graphs for ldr r=msbutler a=navsetlur

All previous tests were A <-> B replication. This commit adds an acyclic test with multiple sources for one target, and another one with a fully connected replication graph.

Release note: none
Informs: #129890

130351: workload/schemachanger: ignore unique violation errors for CREATE INDEX r=fqazi a=fqazi

Previously, the schema changer workload added logic to ignore potential unique violation errors during CREATE UNIQUE INDEX. This logic was for the statement phase, which is not when this error would be noticed, so it did not work correctly. To address this, this patch adds the logic to make unique violations error as  potential commit error for CREATE INDEX.

Fixes: #129366

Release note: None

Co-authored-by: Naveen Setlur <naveen.setlur@cockroachlabs.com>
Co-authored-by: Faizan Qazi <faizan@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Sep 9, 2024

Build failed (retrying...):

@craig craig bot merged commit d8233a9 into cockroachdb:master Sep 9, 2024
23 checks passed
Copy link

blathers-crl bot commented Sep 9, 2024

Based on the specified backports for this PR, I applied new labels to the following linked issue(s). Please adjust the labels as needed to match the branches actually affected by the issue(s), including adding any known older branches.


Issue #129366: branch-release-24.1, branch-release-24.2.


🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

Copy link

blathers-crl bot commented Sep 9, 2024

Encountered an error creating backports. Some common things that can go wrong:

  1. The backport branch might have already existed.
  2. There was a merge conflict.
  3. The backport branch contained merge commits.

You might need to create your backport manually using the backport tool.


error creating merge commit from fb7a8e8 to blathers/backport-release-24.1-130351: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict []

you may need to manually resolve merge conflicts with the backport tool.

Backport to branch 24.1.x failed. See errors above.


error creating merge commit from fb7a8e8 to blathers/backport-release-24.2-130351: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict []

you may need to manually resolve merge conflicts with the backport tool.

Backport to branch 24.2.x failed. See errors above.


🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-24.1.x Flags PRs that need to be backported to 24.1. backport-24.2.x Flags PRs that need to be backported to 24.2
Projects
None yet
3 participants