From bca7d87ac42b2ecafae7423079b84e8d6b5654bc Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Wed, 22 Feb 2017 15:11:42 -0800 Subject: [PATCH] Rename threadpool time method See elastic/elasticsearch#23175 Original commit: elastic/x-pack-elasticsearch@0e185c0a442690f742e1b645254abadce824e4b5 --- .../xpack/graph/action/TransportGraphExploreAction.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugin/src/main/java/org/elasticsearch/xpack/graph/action/TransportGraphExploreAction.java b/plugin/src/main/java/org/elasticsearch/xpack/graph/action/TransportGraphExploreAction.java index 253d62e8e9c..5275a01b516 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/graph/action/TransportGraphExploreAction.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/graph/action/TransportGraphExploreAction.java @@ -39,7 +39,6 @@ import org.elasticsearch.search.builder.SearchSourceBuilder; import org.elasticsearch.threadpool.ThreadPool; import org.elasticsearch.transport.TransportService; import org.elasticsearch.xpack.XPackPlugin; -import org.elasticsearch.xpack.graph.Graph; import org.elasticsearch.xpack.graph.action.Connection.ConnectionId; import org.elasticsearch.xpack.graph.action.GraphExploreRequest.TermBoost; import org.elasticsearch.xpack.graph.action.Vertex.VertexId; @@ -112,7 +111,7 @@ public class TransportGraphExploreAction extends HandledTransportAction listener) { this.request = request; this.listener = listener; - this.startTime = threadPool.estimatedTimeInMillis(); + this.startTime = threadPool.relativeTimeInMillis(); this.timedOut = new AtomicBoolean(false); this.shardFailures = ShardSearchFailure.EMPTY_ARRAY; } @@ -757,7 +756,7 @@ public class TransportGraphExploreAction extends HandledTransportAction