[ML] Made fields volatile or final

Original commit: elastic/x-pack-elasticsearch@c9478e2da4
This commit is contained in:
Martijn van Groningen 2017-03-24 19:36:12 +01:00
parent c0445fac4d
commit ea273ab67e
1 changed files with 3 additions and 3 deletions

View File

@ -49,9 +49,9 @@ class NativeAutodetectProcess implements AutodetectProcess {
private final ZonedDateTime startTime;
private final int numberOfAnalysisFields;
private final List<Path> filesToDelete;
private Future<?> logTailFuture;
private Future<?> stateProcessorFuture;
private AutodetectResultsParser resultsParser;
private volatile Future<?> logTailFuture;
private volatile Future<?> stateProcessorFuture;
private final AutodetectResultsParser resultsParser;
NativeAutodetectProcess(String jobId, InputStream logStream, OutputStream processInStream, InputStream processOutStream,
int numberOfAnalysisFields, List<Path> filesToDelete, AutodetectResultsParser resultsParser) {