[ML] Enable datafeed preview with future data (elastic/x-pack-elasticsearch#949)

Original commit: elastic/x-pack-elasticsearch@7f9e450edc
This commit is contained in:
Dimitris Athanasiou 2017-04-04 17:08:01 +01:00 committed by GitHub
parent 38706faec7
commit 4fdcedb9f9
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ public class PreviewDatafeedAction extends Action<PreviewDatafeedAction.Request,
// This is important because it means the datafeed search will fail if the user
// requesting the preview doesn't have permission to search the relevant indices.
DataExtractorFactory dataExtractorFactory = DataExtractorFactory.create(client, datafeedWithAutoChunking.build(), job);
DataExtractor dataExtractor = dataExtractorFactory.newExtractor(0, System.currentTimeMillis());
DataExtractor dataExtractor = dataExtractorFactory.newExtractor(0, Long.MAX_VALUE);
threadPool.generic().execute(() -> previewDatafeed(dataExtractor, listener));
}