ES|QL: pin 'now' as query start time (#113777)

This commit is contained in:
Luigi Dell'Aquila 2024-10-01 17:41:05 +02:00 committed by GitHub
parent 852c960960
commit ee73969bbb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -171,11 +171,9 @@ public class Configuration implements Writeable {
/** /**
* Returns the current time in milliseconds from the time epoch for the execution of this request. * Returns the current time in milliseconds from the time epoch for the execution of this request.
* It ensures consistency by using the same value on all nodes involved in the search request. * It ensures consistency by using the same value on all nodes involved in the search request.
* Note: Currently, it returns {@link System#currentTimeMillis()}, but this value will be serialized between nodes.
*/ */
public long absoluteStartedTimeInMillis() { public long absoluteStartedTimeInMillis() {
// MP TODO: I'm confused - Why is this not a fixed value taken at the start of the query processing? return now.toInstant().toEpochMilli();
return System.currentTimeMillis();
} }
/** /**