Bug 1148807

Summary: [linearstore] Restarting broker with empty journal raises confusing warning
Product: Red Hat Enterprise MRG Reporter: Pavel Moravec <pmoravec>
Component: qpid-cppAssignee: Kim van der Riet <kim.vdriet>
Status: CLOSED ERRATA QA Contact: Matej Lesko <mlesko>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: freznice, iboverma, jross, mlesko, zkraus
Target Milestone: 3.2   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: qpid-cpp-0.32-1 Doc Type: Bug Fix
Doc Text:
Provisioning a durable message (backed up by linearstore journal) and restarting the broker without enqueueing a message into it raised a warning message `Journal .. is uninitialized or corrupted`. This message (on this verbosity level) was confusing to users, as it incorrectly suggested a potential problem with the journal. The fix to Linearstore now uses the uninitialized file as the first journal file in the queue.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-08 13:09:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 785156    

Description Pavel Moravec 2014-10-02 12:25:39 UTC
Description of problem:
Provisioning a durable message (backed up by linearstore journal) and restarting the broker without enqueueing a message into it raises warning message "Journal .. is uninitialized or corrupted".

This message (on this verbosity level) is confusing for a user, as it suggests some problem with the journal while there is none.

Please change the verbosity to info.

Note however that the log message can appear under different use cases (corrupted journal header) where warn level is appropriate.


Version-Release number of selected component (if applicable):
qpid-cpp 0.22-49


How reproducible:
100%


Steps to Reproduce:
1. service qpidd restart
2. qpid-config add queue DurableQueue --durable
3. service qpidd restart


Actual results:
2014-10-01 16:04:19 [Store] warning Linear Store: Journal "DurableQueue": Journal file /var/lib/qpidd/qls/jrnl/DurableQueue/0add3b06-06ee-4f86-8e17-22e0fd1a67e9.jrnl is uninitialized or corrupted


Expected results:
The log is on info level.


Additional info:

Comment 1 Kim van der Riet 2015-01-06 15:51:32 UTC
This issue has been fixed with checkin r.1649081, the final checkin for a related bug 1160367.

With this checkin, the uninitialized file is now correctly used by the store as the first journal file in the queue.

Comment 4 errata-xmlrpc 2015-10-08 13:09:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2015-1879.html