]
Emmanuel Hugonnet updated WFLY-14408:
-------------------------------------
Labels: artemis messaging (was: artemis cli messaging)
CLI journal-import command fails if in-vm connector has a server-id
other than "0"
----------------------------------------------------------------------------------
Key: WFLY-14408
URL:
https://issues.redhat.com/browse/WFLY-14408
Project: WildFly
Issue Type: Bug
Components: JMS
Affects Versions: 22.0.0.Final
Reporter: Emmanuel Hugonnet
Assignee: Emmanuel Hugonnet
Priority: Major
Labels: artemis, messaging
If the in-vm-connector / in-vm-acceptor for the default / live messaging-activemq server
is configured with a server-id higher than "0":
{code}
<in-vm-connector name="in-vm-connector1" server-id="1"/>
{code}
then performing an import-journal operation from the cli fails with a rather unhelpful
"Cannot connect to server(s)" message:
{code}
[standalone@localhost:9990 /]
/subsystem=messaging-activemq/server=ServerLive:import-journal(file=/home/jboss/messages.xml)
{ "outcome" => "failed", "failure-description" =>
"AMQ219007: Cannot connect to server(s). Tried with all available servers.",
"rolled-back" => true }
{code}
After much debugging, resetting the server-id to "0" on the live server in-vm
acceptor and connector and from "2" to "1" on the backup resolved the
issue and the import succeeded.