[
https://issues.apache.org/jira/browse/ARTEMIS-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18078575#comment-18078575
]
ASF subversion and git services commented on ARTEMIS-5987:
----------------------------------------------------------
Commit c844030eeb2fd76be417313fe61bfb8ad47968f6 in artemis's branch
refs/heads/main from Emmanuel Hugonnet
[ https://gitbox.apache.org/repos/asf?p=artemis.git;h=c844030eeb ]
ARTEMIS-5987: Properly handling exceptions with single connection.
If there is an issue while creating a session in single connection mode
then the connection factory can be in a bad state and the loop for
creating sessions still continues over this.
Issue: https://issues.apache.org/jira/browse/ARTEMIS-5987
Signed-off-by: Emmanuel Hugonnet <[email protected]>
> singleConnection can be in a bad state
> --------------------------------------
>
> Key: ARTEMIS-5987
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5987
> Project: Artemis
> Issue Type: Bug
> Components: JMS
> Affects Versions: 2.53.0
> Reporter: Emmanuel Hugonnet
> Priority: Major
> Labels: pull-request-available
> Time Spent: 50m
> Remaining Estimate: 0h
>
> When the sessions are created on the single connection, if something fails we
> should stop attempting to create new sessions and close the connection
> factory as it is in a bad state and it raised a 'wrong' error, e.g.:
> {noformat}
> 00:45:54,328 WARN [org.apache.activemq.artemis.ra.ActiveMQRALogger]
> (default-threads - 3) AMQ152005: Failure in broker activation
> org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec(ra=org.wildfly.extension.messaging.activemq.ActiveMQResourceAdapter@9f1bfbc
> destination=jms/queue/myQueue destinationType=null ack=Auto-acknowledge
> durable=false clientID=null user=null maxSession=15):
> org.apache.activemq.artemis.api.core.ActiveMQInternalErrorException:
> [errorType=INTERNAL_ERROR message=AMQ219000: ClientSession closed while
> creating session]
> at
> [email protected]//org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQClientProtocolManager.createSessionContext(ActiveMQClientProtocolManager.java:277)
> at
> [email protected]//org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQClientProtocolManager.createSessionContext(ActiveMQClientProtocolManager.java:254)
> at
> [email protected]//org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.createSessionChannel(ClientSessionFactoryImpl.java:1469)
> at
> [email protected]//org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.createSessionInternal(ClientSessionFactoryImpl.java:830)
> at
> [email protected]//org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.createSession(ClientSessionFactoryImpl.java:355)
> at
> [email protected]//org.apache.activemq.artemis.ra.ActiveMQResourceAdapter.createSession(ActiveMQResourceAdapter.java:1035)
> at
> [email protected]//org.apache.activemq.artemis.ra.inflow.ActiveMQActivation.setupSession(ActiveMQActivation.java:427)
> at
> [email protected]//org.apache.activemq.artemis.ra.inflow.ActiveMQActivation.setup(ActiveMQActivation.java:257)
> at
> [email protected]//org.apache.activemq.artemis.ra.inflow.ActiveMQActivation$SetupActivation.run(ActiveMQActivation.java:682)
> ...{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]