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

crazyhzm pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.0 by this push:
     new 32f89ff  [3.0] TimeoutCheckTask should be cancelled when DefaultFuture 
has been cancelled (#8897) (#8898)
32f89ff is described below

commit 32f89ffedc5337df819bcff2b9b7137d44b11649
Author: passer <[email protected]>
AuthorDate: Fri Sep 24 11:02:55 2021 +0800

    [3.0] TimeoutCheckTask should be cancelled when DefaultFuture has been 
cancelled (#8897) (#8898)
---
 .../java/org/apache/dubbo/remoting/exchange/support/DefaultFuture.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/exchange/support/DefaultFuture.java
 
b/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/exchange/support/DefaultFuture.java
index 5a12d62..f97a0f7 100644
--- 
a/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/exchange/support/DefaultFuture.java
+++ 
b/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/exchange/support/DefaultFuture.java
@@ -188,6 +188,7 @@ public class DefaultFuture extends 
CompletableFuture<Object> {
         this.doReceived(errorResult);
         FUTURES.remove(id);
         CHANNELS.remove(id);
+        timeoutCheckTask.cancel();
         return true;
     }
 

Reply via email to