-
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
Empty dir error in datanode inplace migration #20912
Conversation
09bb5fa
to
7639e2b
Compare
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.
I would not stop them from migrating, only warn them. Without remote reindexing, this is currently the only way to switch to data node if you don't care about migrating data
@moesterheld added warnings to the compatibility check and remove the error in case of empty data directory. @gally47 could you please extend the frontend implementation, so it displays warning? The current response format looks like this: {
"tdvorak-ThinkPad-T14s-Gen-1": {
"hostname": "tdvorak-ThinkPad-T14s-Gen-1",
"opensearch_version": "2.15.0",
"info": {
"nodes": [],
"opensearch_data_location": "/home/tdvorak/bin/datanode/data"
},
"compatibility_errors": [],
"compatibility_warnings": [
"Your configured opensearch_data_location directory /home/tdvorak/bin/datanode/data doesn't contain any indices! Migration can't continue!"
]
}
} |
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.
Thanks @gally47, the frontend now works perfectly! Tested locally and everything looks good.
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.
Tested and works fine. Backend lgtm, frontend as well.
Empty
opensearch_data_location
should be reported as invalid configuration for the inplace migration. If it's empty and users are trying to migrate, it's most likely an error in configuration, their actual data is somewhere else that they are telling us./nocl
Screenshots (if appropriate):
Types of changes
Checklist: