-
Notifications
You must be signed in to change notification settings - Fork 26k
Internal: Remove cyclic dependency between HttpServer and NodeService #19218
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,12 +73,6 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws | |
| builder.byteSizeField("total_indexing_buffer", "total_indexing_buffer_in_bytes", nodeInfo.getTotalIndexingBuffer()); | ||
| } | ||
|
|
||
| if (nodeInfo.getServiceAttributes() != null) { | ||
| for (Map.Entry<String, String> nodeAttribute : nodeInfo.getServiceAttributes().entrySet()) { | ||
| builder.field(nodeAttribute.getKey(), nodeAttribute.getValue()); | ||
| } | ||
| } | ||
|
|
||
| builder.startArray("roles"); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess this piece of info that is not returned by nodes info was already returned in some other section of nodes info as well? I think we have a proper
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes that is right. |
||
| for (DiscoveryNode.Role role : nodeInfo.getNode().getRoles()) { | ||
| builder.value(role.getRoleName()); | ||
|
|
||
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.
do we need this bw comp layer?
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.
You are right, we don't! I will remove.