[ML] Make updateDatafeed var in UpdateDatafeedAction volatile
Original commit: elastic/x-pack-elasticsearch@d8461d0960cde8383461007b79754e7db593ec8f
@@ -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) {
