-
Notifications
You must be signed in to change notification settings - Fork 684
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
PG17 - Add Regression Test for REINDEX support in event triggers #7819
base: release-13.0
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release-13.0 #7819 +/- ##
===============================================
Coverage ? 89.63%
===============================================
Files ? 274
Lines ? 59748
Branches ? 7452
===============================================
Hits ? 53558
Misses ? 4059
Partials ? 2131 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, @onurctirtir can you give a second look?
Basically, do you see any issue with having start-end event triggers for a REINDEX command on a distributed table? We don't distribute event triggers currently in Citus, but I think it's okay to have unpropagated start-end event trigger for a propagated reindex command?
For reindex commands, the way that Citus acts when "concurrently" option is provided is a bit tricky. So, as long as we also add a test where we provide "concurrently" option to "reindex" command, we should be okay at the high level. See ExecuteDistributedDDLJob(). |
32012cb
to
886497e
Compare
Do you have in mind an isolation test? |
I think we don't need to add an isolation test. If we can just use "concurrently" syntax in one of our tests, that should also be fine. This is because, in the past, even simply providing "concurrently" option was causing indefinite self deadlocks or sometimes crashes for create index / reindex commands in Citus. |
6a9dd84
to
2303b23
Compare
CONCURRENTLY update update
2303b23
to
f810a17
Compare
This PR adds regression tests to verify REINDEX support with event triggers. Tests validates trigger execution, shard placement consistency, and distributed index rebuilding without disruption.