From 5af90ba185cf7cf385832862ef208f304954526b Mon Sep 17 00:00:00 2001 From: qiaozhanwei <825193156@qq.com> Date: Thu, 25 Jul 2019 19:25:21 +0800 Subject: [PATCH] taskInstance variables add volatile --- .../cn/escheduler/server/worker/runner/FetchTaskThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/escheduler-server/src/main/java/cn/escheduler/server/worker/runner/FetchTaskThread.java b/escheduler-server/src/main/java/cn/escheduler/server/worker/runner/FetchTaskThread.java index f505f817d8..053fad6af1 100644 --- a/escheduler-server/src/main/java/cn/escheduler/server/worker/runner/FetchTaskThread.java +++ b/escheduler-server/src/main/java/cn/escheduler/server/worker/runner/FetchTaskThread.java @@ -82,7 +82,7 @@ public class FetchTaskThread implements Runnable{ /** * task instance */ - private TaskInstance taskInstance; + private volatile TaskInstance taskInstance; /** * task instance id