Skip to content

Conversation

@HavierD
Copy link
Contributor

@HavierD HavierD commented Nov 28, 2025

No description provided.

@HavierD HavierD marked this pull request as draft November 28, 2025 00:19
@HavierD HavierD marked this pull request as ready for review November 28, 2025 03:43
@HavierD HavierD marked this pull request as draft December 3, 2025 02:44
@HavierD
Copy link
Contributor Author

HavierD commented Dec 3, 2025

to draft until @HavierD is back from holiday

}
}

protected Set<String> extractTokensFromDescription(String description) throws IOException {
Copy link
Contributor

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?

Copy link
Contributor Author

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) {
Copy link
Contributor

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) {
Copy link
Contributor

@utas-raymondng utas-raymondng Jan 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Can change to protected without issue
  2. 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
  3. What happen if the index failed in the middle, will the cleanup clean the previous incomplete index
  4. Any test to verify alias flip?
  5. I think the code have clean the old index right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. ok
  2. 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.
  3. 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..
  4. will check later. if no, i will add one.
  5. as above NO.3 said, not for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants