[jboss-jira] [JBoss JIRA] Commented: (JBMESSAGING-1543) Message Bridge does not start if the first attempt failed

Markus Lutum (JIRA) jira-events at lists.jboss.org
Wed Apr 1 02:27:19 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBMESSAGING-1543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12459944#action_12459944 ] 

Markus Lutum commented on JBMESSAGING-1543:
-------------------------------------------

Sorry Howard!

I have the same issue here and maybe the reason.

Like your example I have Node B with 2 bridges deployed. One sends messages with a selector to Node A and one pulls all messages from A to B.

1. I start B which detects A is not there and it starts retrying to connect the 2 Bridges
2. I start A and the bridges are  "Bridge Succeeded in reconnecting to servers"
3. I create messages on B and I create messages on A. No Message is bridges in any direction.

If I then restart A again the Bridges on B are retried and reconnected after A is back. But still the Bridge does not deliver the messages which I see in the database.
If on startup the connection can be established and later Node A is restarted the retry->reconnect->deliver works as designed.

This behaviour I can see if I configure the bridges with:
      <attribute name="MaxBatchSize">20</attribute>     
      <attribute name="MaxBatchTime">5000</attribute>


If I change the Size to only one message (<attribute name="MaxBatchSize">1</attribute>) this above behaviour is gone and it successfully reconnects and delivers also in case of failed on startup!!

So I think it has to do with the maxbachsize setting.
Can you please retest it?
By the way. I also tested this with yesterdays version  in Branch_1_4. So its not fixed meanwhile.




> Message Bridge does not start if the first attempt failed
> ---------------------------------------------------------
>
>                 Key: JBMESSAGING-1543
>                 URL: https://jira.jboss.org/jira/browse/JBMESSAGING-1543
>             Project: JBoss Messaging
>          Issue Type: Bug
>    Affects Versions: 1.4.0.SP3, 1.4.2.GA.SP1
>         Environment: Windows XP, Java 1.5.0_17, JBoss AS 4.2.3.GA, JBossRemoting 2.5.0.SP2
>            Reporter: Alexei Sadovnikov
>            Assignee: Howard Gao
>             Fix For: 1.4.0.SP3.CP08, 1.4.4.GA
>
>
> The server A sends messages to the queue QA. A message bridge is deployed on the server B, it reads messages from QA and sends them to the queue QB on the server B. If we start the server A first and then the server B then the bridge works properly. If we start the server B first, the bridge fails to start (as expected), then we start the server A. The bridge detects that A is running and the source connection (the message "Succeeded in connecting to servers" is printed), but it does not deliver any messages.
> The same happens if messages are sent to a queue on the server B and should be bridged to a queue on the server A.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list