You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Kim van der Riet (JIRA)" <qp...@incubator.apache.org> on 2010/02/02 16:50:20 UTC

[jira] Created: (QPID-2384) Cluster recovers duplicate messages when using async store and --no-data-dir and --store-dir together

Cluster recovers duplicate messages when using async store and --no-data-dir and --store-dir together
-----------------------------------------------------------------------------------------------------

                 Key: QPID-2384
                 URL: https://issues.apache.org/jira/browse/QPID-2384
             Project: Qpid
          Issue Type: Bug
          Components: C++ Clustering
            Reporter: Kim van der Riet


(copied from https://bugzilla.redhat.com/show_bug.cgi?id=560102)

When using a persistent store in cluster mode, if you say --no-data-dir, the wrong thing happens at init time, and the broker comes up in a confused state.

Version-Release number of selected component (if applicable): trunk

How reproducible: Always

Steps to Reproduce:
1.  Start two brokers with a stores, specify --store-dir, and --no-data-dir
2.  Create some objects
3.  Bounce and restart a broker

Actual results: Broker recovers objects from the store, when it shouldn't

Expected results: Should get statea from the peer.

-- 
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] Assigned: (QPID-2384) Cluster recovers duplicate messages when using async store and --no-data-dir and --store-dir together

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

Kim van der Riet reassigned QPID-2384:
--------------------------------------

    Assignee: Kim van der Riet

> Cluster recovers duplicate messages when using async store and --no-data-dir and --store-dir together
> -----------------------------------------------------------------------------------------------------
>
>                 Key: QPID-2384
>                 URL: https://issues.apache.org/jira/browse/QPID-2384
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Clustering
>            Reporter: Kim van der Riet
>            Assignee: Kim van der Riet
>
> (copied from https://bugzilla.redhat.com/show_bug.cgi?id=560102)
> When using a persistent store in cluster mode, if you say --no-data-dir, the wrong thing happens at init time, and the broker comes up in a confused state.
> Version-Release number of selected component (if applicable): trunk
> How reproducible: Always
> Steps to Reproduce:
> 1.  Start two brokers with a stores, specify --store-dir, and --no-data-dir
> 2.  Create some objects
> 3.  Bounce and restart a broker
> Actual results: Broker recovers objects from the store, when it shouldn't
> Expected results: Should get statea from the peer.

-- 
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-2384) Cluster recovers duplicate messages when using async store and --no-data-dir and --store-dir together

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

Kim van der Riet resolved QPID-2384.
------------------------------------

    Resolution: Fixed

This is a logic flaw in the cluster store status. When --no-data-dir is specified, the logic which discards the store for the second and subsequent nodes fails to run. In addition, the cluster has nowhere to write its store status information which is normally written into the data directory.

Considering that the store-dir used by the async store is unique to that store and is not available on stores generally, it makes sense therefore to make the use of --data-dir mandatory when the cluster is loaded together with any non-null store. This fix now will stop the broker with an error message if --no-data-dir is used in the presence of any non-null store.

Fixed in r.905680

> Cluster recovers duplicate messages when using async store and --no-data-dir and --store-dir together
> -----------------------------------------------------------------------------------------------------
>
>                 Key: QPID-2384
>                 URL: https://issues.apache.org/jira/browse/QPID-2384
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Clustering
>            Reporter: Kim van der Riet
>            Assignee: Kim van der Riet
>
> (copied from https://bugzilla.redhat.com/show_bug.cgi?id=560102)
> When using a persistent store in cluster mode, if you say --no-data-dir, the wrong thing happens at init time, and the broker comes up in a confused state.
> Version-Release number of selected component (if applicable): trunk
> How reproducible: Always
> Steps to Reproduce:
> 1.  Start two brokers with a stores, specify --store-dir, and --no-data-dir
> 2.  Create some objects
> 3.  Bounce and restart a broker
> Actual results: Broker recovers objects from the store, when it shouldn't
> Expected results: Should get statea from the peer.

-- 
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