diff options
author | Alan Conway <aconway@apache.org> | 2010-11-22 16:15:06 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2010-11-22 16:15:06 +0000 |
commit | 0f86c796ccb052fa6c5f807f480a1feabec643f8 (patch) | |
tree | 0d5d5613220e01ef99ff6ca79f9ff9a1898fa822 /python | |
parent | 17401b1293bcd090ee1a675665ba30fcfac76d5b (diff) | |
download | qpid-python-0f86c796ccb052fa6c5f807f480a1feabec643f8.tar.gz |
QPID-2956: cluster broker exits with "error deliveryRecord no update message."
The following sequence of events was causing a broker joining the cluster to shutdown:
- a client acquires or browses a message with TTL set.
- the message expires.
- a new broker joins before the client has acknowledged the message.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1037763 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r-- | python/qpid/brokertest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/qpid/brokertest.py b/python/qpid/brokertest.py index 208bfd6000..98f58ebfdd 100644 --- a/python/qpid/brokertest.py +++ b/python/qpid/brokertest.py @@ -335,7 +335,7 @@ class Broker(Popen): try: self._port = int(self.stdout.readline()) except ValueError: raise Exception("Can't get port for broker %s (%s)%s" % - (self.name, self.pname, error_line(self.log,4))) + (self.name, self.pname, error_line(self.log,5))) return self._port def unexpected(self,msg): @@ -409,7 +409,7 @@ class Broker(Popen): # First make sure the broker is listening by checking the log. if not retry(self.log_ready, timeout=30): raise Exception( - "Timed out waiting for broker %s%s"%(self.name, error_line(self.log,4))) + "Timed out waiting for broker %s%s"%(self.name, error_line(self.log,5))) # Create a connection and a session. For a cluster broker this will # return after cluster init has finished. try: @@ -417,7 +417,7 @@ class Broker(Popen): try: c.session() finally: c.close() except: raise RethrownException( - "Broker %s failed ready test%s"%(self.name,error_line(self.log,4))) + "Broker %s failed ready test%s"%(self.name,error_line(self.log, 5))) def store_state(self): uuids = open(os.path.join(self.datadir, "cluster", "store.status")).readlines() |