You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "john dunning (JIRA)" <qp...@incubator.apache.org> on 2010/01/22 21:02:21 UTC

[jira] Created: (QPID-2357) Broker boot sequence doesn't synchronize when clustered.

Broker boot sequence doesn't synchronize when clustered.
--------------------------------------------------------

                 Key: QPID-2357
                 URL: https://issues.apache.org/jira/browse/QPID-2357
             Project: Qpid
          Issue Type: Bug
          Components: C++ Broker
         Environment: Linux
            Reporter: john dunning


I discovered this when debugging something else.  If you start broker 1 with a data-dir, and broker 2 with no data-dir or a different one, you can (almost always) end up with a different boot sequence.  That means if you cluster these two together, when the updatee gets updates, he'll use different OIDs that the master.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Closed: (QPID-2357) Broker boot sequence doesn't synchronize when clustered.

Posted by "Alan Conway (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Conway closed QPID-2357.
-----------------------------

    Assignee: Alan Conway

> Broker boot sequence doesn't synchronize when clustered.
> --------------------------------------------------------
>
>                 Key: QPID-2357
>                 URL: https://issues.apache.org/jira/browse/QPID-2357
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>         Environment: Linux
>            Reporter: john dunning
>            Assignee: Alan Conway
>         Attachments: qpid-sync-proposed-2.diff, qpid-sync-proposed.diff
>
>
> I discovered this when debugging something else.  If you start broker 1 with a data-dir, and broker 2 with no data-dir or a different one, you can (almost always) end up with a different boot sequence.  That means if you cluster these two together, when the updatee gets updates, he'll use different OIDs that the master.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-2357) Broker boot sequence doesn't synchronize when clustered.

Posted by "john dunning (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

john dunning updated QPID-2357:
-------------------------------

    Attachment: qpid-sync-proposed-2.diff

Revised patch, after comments from aconway.

> Broker boot sequence doesn't synchronize when clustered.
> --------------------------------------------------------
>
>                 Key: QPID-2357
>                 URL: https://issues.apache.org/jira/browse/QPID-2357
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>         Environment: Linux
>            Reporter: john dunning
>         Attachments: qpid-sync-proposed-2.diff, qpid-sync-proposed.diff
>
>
> I discovered this when debugging something else.  If you start broker 1 with a data-dir, and broker 2 with no data-dir or a different one, you can (almost always) end up with a different boot sequence.  That means if you cluster these two together, when the updatee gets updates, he'll use different OIDs that the master.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Resolved: (QPID-2357) Broker boot sequence doesn't synchronize when clustered.

Posted by "Alan Conway (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Conway resolved QPID-2357.
-------------------------------

    Resolution: Fixed

Comitted r904268

> Broker boot sequence doesn't synchronize when clustered.
> --------------------------------------------------------
>
>                 Key: QPID-2357
>                 URL: https://issues.apache.org/jira/browse/QPID-2357
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>         Environment: Linux
>            Reporter: john dunning
>         Attachments: qpid-sync-proposed-2.diff, qpid-sync-proposed.diff
>
>
> I discovered this when debugging something else.  If you start broker 1 with a data-dir, and broker 2 with no data-dir or a different one, you can (almost always) end up with a different boot sequence.  That means if you cluster these two together, when the updatee gets updates, he'll use different OIDs that the master.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-2357) Broker boot sequence doesn't synchronize when clustered.

Posted by "john dunning (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

john dunning updated QPID-2357:
-------------------------------

    Attachment: qpid-sync-proposed.diff

Attached patch fixes this problem, for at least simple cases.  NB that there are other ways to get OIDs out of sync during an update operation, most notably by having timers fire at an inopportune time.  That bug is being worked separately.

Comments welcome.

> Broker boot sequence doesn't synchronize when clustered.
> --------------------------------------------------------
>
>                 Key: QPID-2357
>                 URL: https://issues.apache.org/jira/browse/QPID-2357
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>         Environment: Linux
>            Reporter: john dunning
>         Attachments: qpid-sync-proposed.diff
>
>
> I discovered this when debugging something else.  If you start broker 1 with a data-dir, and broker 2 with no data-dir or a different one, you can (almost always) end up with a different boot sequence.  That means if you cluster these two together, when the updatee gets updates, he'll use different OIDs that the master.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org