-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Index Backfill] Failing to update index permissions causes index to stuck #4930
Comments
I don't follow where the snippet goes (can you format it as a diff with enough context lines?) and how it simulates table schema version mismatch (is it realistic to be off by one on indexed table version? is it an unrealistic way of simulating a very slow alter schema response rpc from tserver to master?). |
I've changed a snippet to a diff. |
I don't think this diff is realistic.
seems pretty artificial to me. The idea of
is that if there has been an alter sent/in-progress for a version > current_version (say indexed_table_data.pb.version() + 1) like what you are trying to do -- The remaining work will be picked up when the "alter table" for that version (ie. indexed_table_data.pb.version() + 1) completes. If you aren't actually sending an Alter ... but only incrementing the schema version to force that branch, I don't think it is expected to work. |
If you want to execute that path -- something more realistic would be to create "multiple indexes" simultaneously on the table. that way they can race against each other to cause a version to be bumped up unexpectedly. |
Closing this as not being applicable right now. |
i've added this snippet:
in
UpdateIndexPermission
to simulate probability of table schema version mismatch. If this happens, index backfill process is interrupted and never resumed.YCQL command eventually times out:
yb-master also sees the indexed table as ALTERING:

This affects both YCQL and YSQL
The text was updated successfully, but these errors were encountered: