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

dengliming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git


The following commit(s) were added to refs/heads/master by this push:
     new 4bab1f1903 fix: remove duplicate Pulsar shutdown hook (#6768) (#6910)
4bab1f1903 is described below

commit 4bab1f190390ad7209883c01e69f37b9f99963d4
Author: BobSong <[email protected]>
AuthorDate: Fri Aug 14 11:05:04 2026 +0800

    fix: remove duplicate Pulsar shutdown hook (#6768) (#6910)
    
    Co-authored-by: Liming Deng <[email protected]>
---
 .../shenyu/plugin/logging/pulsar/client/PulsarLogCollectClient.java      | 1 -
 1 file changed, 1 deletion(-)

diff --git 
a/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-pulsar/src/main/java/org/apache/shenyu/plugin/logging/pulsar/client/PulsarLogCollectClient.java
 
b/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-pulsar/src/main/java/org/apache/shenyu/plugin/logging/pulsar/client/PulsarLogCollectClient.java
index f614a3c0e9..c58a4d13df 100644
--- 
a/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-pulsar/src/main/java/org/apache/shenyu/plugin/logging/pulsar/client/PulsarLogCollectClient.java
+++ 
b/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-pulsar/src/main/java/org/apache/shenyu/plugin/logging/pulsar/client/PulsarLogCollectClient.java
@@ -63,7 +63,6 @@ public class PulsarLogCollectClient extends 
AbstractLogConsumeClient<PulsarLogCo
             client = PulsarClient.builder().serviceUrl(serviceUrl).build();
             producer = client.newProducer().topic(topic).create();
             LOG.info("init PulsarLogCollectClient success.");
-            Runtime.getRuntime().addShutdownHook(new Thread(this::close));
 
         } catch (PulsarClientException e) {
             LOG.error("init PulsarLogCollectClient error, ", e);

Reply via email to