-
Notifications
You must be signed in to change notification settings - Fork 1
Feature/7802 elasticsearch alias #236
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
base: main
Are you sure you want to change the base?
Conversation
|
to draft until @HavierD is back from holiday |
| } | ||
| } | ||
|
|
||
| protected Set<String> extractTokensFromDescription(String description) throws IOException { |
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.
This function isn't in use except test, is that we can delete it and my the test case?
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 added an overload function of this function, so it made this function not in use. Yes i will remove it with its tests.
| } | ||
| } | ||
|
|
||
| public List<String> getAllIndicesWithPrefix(String baseIndexName) { |
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.
Can change to protected without issue
| * @param existingIndices list of existing index names | ||
| * @return next available version number | ||
| */ | ||
| public int getAvailableVersionNumber(List<String> existingIndices) { |
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.
- Can change to protected without issue
- Is it necessary to keep a version number in the name or a random string works, it seems less complicate if version _vxxx is not needed or you use a date instead if you really want some kind of bookmark
- What happen if the index failed in the middle, will the cleanup clean the previous incomplete index
- Any test to verify alias flip?
- I think the code have clean the old index right?
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.
- ok
- We need some suffix to differentiate indexes so that we can do things such as rollback etc.. version number is not necessary. It can be a datetime string to make it easier.
- nothing happened for now. only succeeded index will be in use. if an indexing is failed, the old index is still in use. No any index will be clean for now. We may need to discuss a cleanup rule later, because we need to keep several old indexes and incomplete/error indexes sometimes, for debugging, rollback, etc..
- will check later. if no, i will add one.
- as above NO.3 said, not for now.
No description provided.