rhmessaging commits: r4514 - in store/trunk/cpp: tests/cluster and 1 other directory.
by rhmessaging-commits@lists.jboss.org
Author: aconway
Date: 2012-09-25 16:44:25 -0400 (Tue, 25 Sep 2012)
New Revision: 4514
Modified:
store/trunk/cpp/lib/MessageStoreImpl.cpp
store/trunk/cpp/tests/cluster/run_ha_tests
Log:
Added logging for recovery of exchanges and bindings.
Modified: store/trunk/cpp/lib/MessageStoreImpl.cpp
===================================================================
--- store/trunk/cpp/lib/MessageStoreImpl.cpp 2012-09-25 14:06:36 UTC (rev 4513)
+++ store/trunk/cpp/lib/MessageStoreImpl.cpp 2012-09-25 20:44:25 UTC (rev 4514)
@@ -862,6 +862,7 @@
//set the persistenceId and update max as required
exchange->setPersistenceId(key.id);
index[key.id] = exchange;
+ QPID_LOG(info, "Recovered exchange \"" << exchange->getName() << '"');
}
maxExchangeId = std::max(key.id, maxExchangeId);
}
@@ -895,6 +896,9 @@
if (exchange != exchanges.end() && queue != queues.end()) {
//could use the recoverable queue here rather than the name...
exchange->second->bind(queueName, routingkey, args);
+ QPID_LOG(info, "Recovered binding exchange=" << exchange->second->getName()
+ << " key=" << routingkey
+ << " queue=" << queueName);
} else {
//stale binding, delete it
QPID_LOG(warning, "Deleting stale binding");
Modified: store/trunk/cpp/tests/cluster/run_ha_tests
===================================================================
--- store/trunk/cpp/tests/cluster/run_ha_tests 2012-09-25 14:06:36 UTC (rev 4513)
+++ store/trunk/cpp/tests/cluster/run_ha_tests 2012-09-25 20:44:25 UTC (rev 4514)
@@ -27,4 +27,4 @@
export STORE_LIB="${abs_builddir}/../../lib/.libs/msgstore.so"
TEST=ha_store_tests.py
which $TEST > /dev/null || { echo "Skip ha tests, $TEST not found"; exit 0; }
-exec $TEST
+exec $TEST $HA_TESTS
12 years, 2 months
rhmessaging commits: r4513 - store/trunk/cpp/tests/cluster.
by rhmessaging-commits@lists.jboss.org
Author: aconway
Date: 2012-09-25 10:06:36 -0400 (Tue, 25 Sep 2012)
New Revision: 4513
Added:
store/trunk/cpp/tests/cluster/run_ha_tests
Log:
Added test script to run persistent qpid HA tests with a store enabled.
Added: store/trunk/cpp/tests/cluster/run_ha_tests
===================================================================
--- store/trunk/cpp/tests/cluster/run_ha_tests (rev 0)
+++ store/trunk/cpp/tests/cluster/run_ha_tests 2012-09-25 14:06:36 UTC (rev 4513)
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+# Copyright (c) 2008, 2009 Red Hat, Inc.
+#
+# This file is part of the Qpid async store library msgstore.so.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+# USA
+#
+# The GNU Lesser General Public License is available in the file COPYING.
+
+test -d "$QPID_DIR" || { echo "Skip ha tests, no qpid checkout at $QPID_DIR"; exit 0; }
+test -d "$QPID_BLD" || { echo "Skip ha tests, no qpid build at $QPID_BLD"; exit 0; }
+. $QPID_BLD/src/tests/test_env.sh
+export STORE_LIB="${abs_builddir}/../../lib/.libs/msgstore.so"
+TEST=ha_store_tests.py
+which $TEST > /dev/null || { echo "Skip ha tests, $TEST not found"; exit 0; }
+exec $TEST
Property changes on: store/trunk/cpp/tests/cluster/run_ha_tests
___________________________________________________________________
Added: svn:executable
+ *
12 years, 3 months