You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by ji...@apache.org on 2022/07/20 02:21:03 UTC

[rocketmq] branch develop updated: [ISSUE #4630] Fix RequestTask's stopRun field concurrency issues(#4631) (#4631)

This is an automated email from the ASF dual-hosted git repository.

jinrongtong pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git


The following commit(s) were added to refs/heads/develop by this push:
     new 89cb8cce8 [ISSUE #4630] Fix RequestTask's stopRun field concurrency issues(#4631) (#4631)
89cb8cce8 is described below

commit 89cb8cce876fe129553a3e4c2f56e309110d95d2
Author: djlnet <du...@coding.net>
AuthorDate: Wed Jul 20 10:20:57 2022 +0800

    [ISSUE #4630] Fix RequestTask's stopRun field concurrency issues(#4631) (#4631)
    
    Co-authored-by: djl <dj...@huolala.cn>
---
 .../src/main/java/org/apache/rocketmq/remoting/netty/RequestTask.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/remoting/src/main/java/org/apache/rocketmq/remoting/netty/RequestTask.java b/remoting/src/main/java/org/apache/rocketmq/remoting/netty/RequestTask.java
index 737ed7426..57ed36060 100644
--- a/remoting/src/main/java/org/apache/rocketmq/remoting/netty/RequestTask.java
+++ b/remoting/src/main/java/org/apache/rocketmq/remoting/netty/RequestTask.java
@@ -25,7 +25,7 @@ public class RequestTask implements Runnable {
     private final long createTimestamp = System.currentTimeMillis();
     private final Channel channel;
     private final RemotingCommand request;
-    private boolean stopRun = false;
+    private volatile boolean stopRun = false;
 
     public RequestTask(final Runnable runnable, final Channel channel, final RemotingCommand request) {
         this.runnable = runnable;