Bug 450540 - broker occasionally leaves lock file in data dir
Summary: broker occasionally leaves lock file in data dir
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: beta
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: Alan Conway
QA Contact: Kim van der Riet
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-06-09 13:37 UTC by Rafael H. Schloming
Modified: 2014-12-01 23:14 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-02-17 14:43:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rafael H. Schloming 2008-06-09 13:37:30 UTC
Description of problem:

I ran the java tests in a loop over the weekend. After 200+ runs I had only two
failures. In both cases the test aborted because the broker failed to start due
to a lock file. In both cases the Java logs show the broker exiting normally
prior to this. The two Java test cases are unrelated.

How reproducible:

It took about 100,000 broker starts/stops to hit this issue.

Additional info:

The data dir was on nfs, and the broker was running without the store.

Comment 1 Alan Conway 2008-06-09 14:17:51 UTC
This also happens with a local directory, I got it in 200 iterations of:

while ./qpidd -d -p 8888 --data-dir /tmp/qpidd && ./qpidd -q -p 8888 ; do echo
-n .; done

Comment 2 Alan Conway 2008-06-16 15:08:03 UTC
I've also seen this occasionally in testing where there was no loop, broker was
killed normally. Using flock(3) or lockf(3) on the brokers data dir might be
more reliable than a simple existence test.

Comment 3 Alan Conway 2008-06-16 15:08:54 UTC
NB: in fixing this we should use common code for both the PID file and the lock
file.

Comment 4 Alan Conway 2009-02-17 14:43:09 UTC
No longer a problem.


Note You need to log in before you can comment on or make changes to this bug.