-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add recover index job statement #119
Add recover index job statement #119
Conversation
Signed-off-by: Chen Dai <[email protected]>
Signed-off-by: Chen Dai <[email protected]>
Signed-off-by: Chen Dai <[email protected]>
Signed-off-by: Chen Dai <[email protected]>
Signed-off-by: Chen Dai <[email protected]>
Signed-off-by: Chen Dai <[email protected]>
Signed-off-by: Chen Dai <[email protected]>
Signed-off-by: Chen Dai <[email protected]>
try { | ||
flintClient | ||
.startTransaction(indexName, dataSourceName) | ||
.initialLog(_ => true) // bypass state check and recover anyway |
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.
what if the index has been deleted?
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.
Will change precondition check to stable index state ACTIVE
, REFRESHING
and FAILED
. Thanks!
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.
Address in 92f567e.
Signed-off-by: Chen Dai <[email protected]>
Description
RECOVER INDEX JOB
command which restarts incremental refresh job regardless of previous index state. In particular, the index state will transit from any state toRECOVERING
(new index state) and then toREFRESHING
once recovery complete.FAILED
directly and cancel update task.Documentation
Updated user manual https://github.com/dai-chen/opensearch-spark/blob/add-recover-index-job-command/docs/index.md#index-job-management
Example
Issues Resolved
#57
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.