[ML] Make updateDatafeed var in UpdateDatafeedAction volatile

Original commit: elastic/x-pack-elasticsearch@d8461d0960
This commit is contained in:
Dimitrios Athanasiou 2017-04-28 17:58:55 +01:00
parent 5a70eac6e8
commit ee5e66bb0d
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ public class UpdateDatafeedAction extends Action<UpdateDatafeedAction.Request, P
throws Exception {
clusterService.submitStateUpdateTask("update-datafeed-" + request.getUpdate().getId(),
new AckedClusterStateUpdateTask<PutDatafeedAction.Response>(request, listener) {
private DatafeedConfig updatedDatafeed;
private volatile DatafeedConfig updatedDatafeed;
@Override
protected PutDatafeedAction.Response newResponse(boolean acknowledged) {