Bug 1148807 - [linearstore] Restarting broker with empty journal raises confusing warning
Summary: [linearstore] Restarting broker with empty journal raises confusing warning
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: 3.0
Hardware: All
OS: All
medium
medium
Target Milestone: 3.2
: ---
Assignee: Kim van der Riet
QA Contact: Matej Lesko
URL:
Whiteboard:
Depends On:
Blocks: 785156
TreeView+ depends on / blocked
 
Reported: 2014-10-02 12:25 UTC by Pavel Moravec
Modified: 2019-08-15 03:59 UTC (History)
5 users (show)

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.
Clone Of:
Environment:
Last Closed: 2015-10-08 13:09:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1238183 0 None None None Never
Red Hat Product Errata RHEA-2015:1879 0 normal SHIPPED_LIVE Red Hat Enterprise MRG Messaging 3.2 Release 2015-10-08 17:07:53 UTC

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


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