[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:
Simon Willnauer 2014-11-27 16:19:26 +01:00
parent c1832e36dc
commit 6e4f3cf42d
1 changed files with 1 additions and 1 deletions

View File

@ -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