[ 
https://issues.apache.org/jira/browse/ARTEMIS-4338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17740553#comment-17740553
 ] 

ASF subversion and git services commented on ARTEMIS-4338:
----------------------------------------------------------

Commit 2d1a8661fd58ba26e5353b53799344a3f9b58d58 in activemq-artemis's branch 
refs/heads/main from Justin Bertram
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=2d1a8661fd ]

ARTEMIS-4338 STOMP inoperable w/resource audit logging

When resource audit logging is enabled STOMP is completely inoperable
due to an NPE during the protocol handshake. Unfortunately the failure
is completely silent. There are no logs to indicate a problem.

This commit fixes this problem via the following changes:
 - Mitigate the original NPE via a check for null
 - Move the logic necessary to set the "protocol connection" on the
   "transport connection" to a class shared by all implementations.
 - Add exception handling to log failures like this in the future.
 - Add tests to ensure the audit logging is correct.


> STOMP inoperable w/resource audit logging enabled
> -------------------------------------------------
>
>                 Key: ARTEMIS-4338
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4338
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: STOMP
>    Affects Versions: 2.29.0
>            Reporter: Otavio Rodolfo Piske
>            Assignee: Justin Bertram
>            Priority: Blocker
>         Attachments: camel-stomp-test-debug-2.28.0.log, 
> camel-stomp-test-debug-2.29.0.log
>
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> Recently we tried upgrading to Artemis 2.29, but when doing so our 
> integration tests started to fail. No code was changed as part of the upgrade.
> With 2.29, the connection seems to fail due to a connection timeout:
>  
> {noformat}
> 2023-06-29 07:51:40,739 [Impl$6@b91d8c4)] WARN  server                        
>  - AMQ222067: Connection failure has been detected: AMQ229014: Did not 
> receive data from /127.0.0.1:50934 within the 60000ms connection TTL. The 
> connection will now be closed. [code=CONNECTION_TIMEDOUT]{noformat}
>  
> I wasn't able to determine the problem, so I am attaching the debug logs for 
> an execution with 2.28 and another with 2.29.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to