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

jbonofre pushed a commit to branch activemq-6.1.x
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/activemq-6.1.x by this push:
     new c001b9e65d don't print stack traces when stopping or stopped (#1414)
c001b9e65d is described below

commit c001b9e65dbf20cd55d6c6a0bfbf97c9be947b87
Author: colinwerner <[email protected]>
AuthorDate: Tue Jun 10 08:11:20 2025 -0700

    don't print stack traces when stopping or stopped (#1414)
    
    Co-authored-by: colin <[email protected]>
    
    (cherry picked from commit 9c3b38af4d1348ed27db3072059e467c3efd420c)
---
 .../org/apache/activemq/transport/http/HttpClientTransport.java     | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/activemq-http/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java
 
b/activemq-http/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java
index 644ccfd034..0cc2c36359 100644
--- 
a/activemq-http/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java
+++ 
b/activemq-http/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java
@@ -206,7 +206,11 @@ public class HttpClientTransport extends 
HttpTransportSupport {
                     stream.close();
                 }
             } catch (Exception e) { // handle RuntimeException from unmarshal
-                onException(IOExceptionSupport.create("Failed to perform GET 
on: " + remoteUrl + " Reason: " + e.getMessage(), e));
+                if (isStopped() || isStopping()) {
+                    LOG.debug("While stopping/stopped failed to perform GET 
on: " + remoteUrl);
+                } else {
+                    onException(IOExceptionSupport.create("Failed to perform 
GET on: " + remoteUrl + " Reason: " + e.getMessage(), e));
+                }
                 break;
             } finally {
                 if (answer != null) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to