You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by aa...@apache.org on 2022/12/12 13:09:58 UTC

[rocketmq-clients] branch java updated (027d6ef3 -> 17e83f7a)

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

aaronai pushed a change to branch java
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git


 discard 027d6ef3 Remove shutdown hook
 discard b90b8643 Adjust default thread pool core size
 discard db9bb5a0 [maven-release-plugin] prepare for next development iteration
 discard 5b75c55c [maven-release-plugin] prepare release java-5.0.4
     new 17e83f7a Remove shutdown hook

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (027d6ef3)
            \
             N -- N -- N   refs/heads/java (17e83f7a)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 java/client-apis/pom.xml                                            | 2 +-
 java/client-shade/pom.xml                                           | 2 +-
 java/client/pom.xml                                                 | 2 +-
 .../main/java/org/apache/rocketmq/client/java/impl/ClientImpl.java  | 4 ++--
 .../org/apache/rocketmq/client/java/impl/ClientManagerImpl.java     | 6 +++---
 java/pom.xml                                                        | 2 +-
 6 files changed, 9 insertions(+), 9 deletions(-)


[rocketmq-clients] 01/01: Remove shutdown hook

Posted by aa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aaronai pushed a commit to branch java
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git

commit 17e83f7ab952e0b3ef30170f33a3bcc40c58ece8
Author: Aaron Ai <ya...@gmail.com>
AuthorDate: Mon Dec 12 17:53:27 2022 +0800

    Remove shutdown hook
---
 .../main/java/org/apache/rocketmq/client/java/impl/ClientImpl.java   | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/java/client/src/main/java/org/apache/rocketmq/client/java/impl/ClientImpl.java b/java/client/src/main/java/org/apache/rocketmq/client/java/impl/ClientImpl.java
index 4def65e5..00e30411 100644
--- a/java/client/src/main/java/org/apache/rocketmq/client/java/impl/ClientImpl.java
+++ b/java/client/src/main/java/org/apache/rocketmq/client/java/impl/ClientImpl.java
@@ -170,11 +170,6 @@ public abstract class ClientImpl extends AbstractIdleService implements Client,
             TimeUnit.SECONDS,
             new LinkedBlockingQueue<>(),
             new ThreadFactoryImpl("CommandExecutor", clientIdIndex));
-
-        Runtime.getRuntime().addShutdownHook(new Thread(() -> {
-            log.info("JVM shutdown hook is invoked, clientId={}, state={}", clientId, ClientImpl.this.state());
-            ClientImpl.this.stopAsync().awaitTerminated();
-        }));
     }