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

[COST-3337] - order subquery deletes/updates #4250

Merged
merged 3 commits into from
Mar 30, 2023
Merged

[COST-3337] - order subquery deletes/updates #4250

merged 3 commits into from
Mar 30, 2023

Conversation

maskarb
Copy link
Member

@maskarb maskarb commented Mar 29, 2023

Jira Ticket

COST-3337

Description

The table that tends to cause deadlocks is reporting_ocptags_values. This PR changes the UPDATEs and DELETEs on this table to an ordered subquery with a locking clause.

Testing

  1. smokes I suppose (not sure how to manually replicate this issue)

Notes

Here are some resources that led me to these changes:

@maskarb maskarb added the smoke-tests pr_check will build the image and run minimal required smokes label Mar 29, 2023
@maskarb
Copy link
Member Author

maskarb commented Mar 29, 2023

/retest

@codecov
Copy link

codecov bot commented Mar 29, 2023

Codecov Report

Merging #4250 (b5d19d4) into main (664d436) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##            main   #4250   +/-   ##
=====================================
  Coverage   94.1%   94.1%           
=====================================
  Files        382     382           
  Lines      32237   32237           
  Branches    3445    3445           
=====================================
  Hits       30347   30347           
- Misses      1238    1240    +2     
+ Partials     652     650    -2     

@maskarb maskarb changed the title order subquery deletes/updates [COST-3337] order subquery deletes/updates Mar 30, 2023
@maskarb maskarb changed the title [COST-3337] order subquery deletes/updates [COST-3337] - order subquery deletes/updates Mar 30, 2023
@maskarb maskarb marked this pull request as ready for review March 30, 2023 16:04
@maskarb maskarb requested review from a team as code owners March 30, 2023 16:04
@maskarb
Copy link
Member Author

maskarb commented Mar 30, 2023

/retest

@maskarb maskarb enabled auto-merge (squash) March 30, 2023 16:27
@maskarb maskarb merged commit 8c3808f into main Mar 30, 2023
@maskarb maskarb deleted the order-subquery branch March 30, 2023 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
smoke-tests pr_check will build the image and run minimal required smokes smokes-required
Projects
None yet
2 participants