Never use ThreadPool#estimatedTimeInMillis as wall-clock time replacement

This commit is contained in:
Simon Willnauer 2016-10-12 22:13:13 +02:00
parent 133be6631d
commit 968fbaceef
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ public class IndexService extends AbstractIndexComponent implements IndicesClust
* used for rewriting since it does not know about the current {@link IndexReader}.
*/
public QueryShardContext newQueryShardContext() {
return newQueryShardContext(0, null, threadPool::estimatedTimeInMillis);
return newQueryShardContext(0, null, System::currentTimeMillis);
}
/**