Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1060114

Summary: store_chk raises "Operation on non-existent record: operation=unlock; rid=.." on aborted DTX transaction in TplStore
Product: Red Hat Enterprise MRG Reporter: Pavel Moravec <pmoravec>
Component: qpid-cppAssignee: Pavel Moravec <pmoravec>
Status: CLOSED UPSTREAM QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 2.3CC: jross, zkraus
Target Milestone: ---Keywords: Patch, TestCaseProvided
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:35:00 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:
Attachments:
Description Flags
Proposed patch
none
Patch committed to upstream none

Description Pavel Moravec 2014-01-31 10:51:48 UTC
Description of problem:
Having an aborted DTX transaction in TplStore, store_chk raises "Operation on non-existent record: operation=unlock; rid=.." error.


Version-Release number of selected component (if applicable):
any (incl. qpid 0.26)


How reproducible:
100%


Steps to Reproduce:
1. Prepare and abort a DTX transaction (e.g. by replacing "dtxCommit" by "dtxRollback" in qpid-txtest.cpp, recompiling it and running it with --dtx=1 argument)
2. /usr/libexec/qpid/store_chk /var/lib/qpidd/rhm/tpl -b tpl


Actual results:
Recovering journals .
Operation on non-existent record: operation=unlock; rid=0x2311c


Expected results:
Journals recovered properly.


Additional info:

Comment 1 Pavel Moravec 2014-01-31 11:02:16 UTC
Created attachment 857799 [details]
Proposed patch

Though I did not understand full logic of emap / map in janal.py, the extra condition in _abort prevents raising the error and allows proper processing of the abort.

Comment 2 Pavel Moravec 2014-01-31 12:15:46 UTC
Upstream review request: https://reviews.apache.org/r/17587/

Comment 3 Pavel Moravec 2014-02-01 10:48:24 UTC
Created attachment 858071 [details]
Patch committed to upstream

Comment 4 Pavel Moravec 2014-02-01 10:49:05 UTC
Committed to upstream as r1563387.

Comment 5 Mike McCune 2016-03-28 23:20:28 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 8 Red Hat Bugzilla 2025-02-10 03:35:00 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.