-
Notifications
You must be signed in to change notification settings - Fork 73
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
[BUG] Race condition on restoring from snapshot #396
Comments
If the data in If, however, there are cases where you would want the data in |
[Triage] We can also have user to first rename the index to a new name during restoration, delete the original index, and then reindex the data from the renamed index to the original one. Adding @bbarani |
We should really try to avoid user interaction here, I think. I'm not super familiar with the low level details of job scheduler, but I suspect |
What is the bug?
This is just my thought process. If extension of job scheduler with short interval acquire lock, it will create an index
.opendistro-job-scheduler-lock
.After taking a snapshot, and if we restore the snapshot, the index for extension of job scheduler can be restored first and it will trigger the task which will create
.opendistro-job-scheduler-lock
index. If restoration of.opendistro-job-scheduler-lock
is happened after that, it will fail due to index name conflict.How can one reproduce the bug?
Steps to reproduce the behavior:
.opendistro-job-scheduler-lock
will failWhat is the expected behavior?
Maybe,
.opendistro-job-scheduler-lock
should be taken in snapshot or restoring of it should be blocked.What is your host/environment?
N/A
Do you have any screenshots?
N/A
Do you have any additional context?
opensearch-project/OpenSearch#7778
The text was updated successfully, but these errors were encountered: