-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add CloseIndexResponse to HLRC #44349
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
Conversation
|
Pinging @elastic/es-core-features |
dnhatn
left a comment
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 looks good. I left a comment to discuss. Thanks @tlrx.
| @SuppressWarnings("unchecked") | ||
| private static final ConstructingObjectParser<IndexResult, String> PARSER = new ConstructingObjectParser<>("index_result", true, | ||
| (args, name) -> { | ||
| final Index index = new Index(name, "_na_"); |
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 think we should avoid using dummy UUIDs in the production code (if possible). However, making IndexResult accept an index name would not be easy now as it will break BWC.
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 reverts commit 86e9926
|
@dnhatn I reverted my changes and I created dedicated objects for the HLRC close index response. This duplicates some logic (mostly in tests) but I think it's cleaner now. Can you please have another look? |
|
@elasticmachine update branch |
|
@elasticmachine update branch |
dnhatn
left a comment
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.
LGTM. Thanks for the extra iteration.
|
Thanks a lot @dnhatn ! |
We improved the
CloseIndexResponsein #39687; this pull request exposes it in the HLRC. It also improves the test coverage by usingAbstractWireSerializingTestCaseandAbstractResponseTestCase.