[CLIENT] Only fetch the node info during node sampling
Today we are fetching a lot of information that is unneeded for the sampling phase. We only really need the DiscoveryNode to ensure the node is still there. This commit clears all flags to be false on the NodeInfo call.
This commit is contained in:
parent
c1832e36dc
commit
6e4f3cf42d
|
@ -348,7 +348,7 @@ public class TransportClientNodesService extends AbstractComponent {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
NodesInfoResponse nodeInfo = transportService.submitRequest(listedNode, NodesInfoAction.NAME,
|
NodesInfoResponse nodeInfo = transportService.submitRequest(listedNode, NodesInfoAction.NAME,
|
||||||
headers.applyTo(Requests.nodesInfoRequest("_local")),
|
headers.applyTo(Requests.nodesInfoRequest("_local").clear()),
|
||||||
TransportRequestOptions.options().withType(TransportRequestOptions.Type.STATE).withTimeout(pingTimeout),
|
TransportRequestOptions.options().withType(TransportRequestOptions.Type.STATE).withTimeout(pingTimeout),
|
||||||
new FutureTransportResponseHandler<NodesInfoResponse>() {
|
new FutureTransportResponseHandler<NodesInfoResponse>() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue