Bug 606530 - Delete multiple bundles resulted in deadlock
Summary: Delete multiple bundles resulted in deadlock
Alias: None
Product: RHQ Project
Classification: Other
Component: Provisioning
Version: 3.0.0
Hardware: All
OS: All
medium vote
Target Milestone: ---
: ---
Assignee: John Mazzitelli
QA Contact: Corey Welton
Depends On:
Blocks: rhq4
TreeView+ depends on / blocked
Reported: 2010-06-21 21:00 UTC by Jay Shaughnessy
Modified: 2011-05-24 01:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Oracle 10g XE
Last Closed: 2011-05-24 01:09:48 UTC

Attachments (Terms of Use)
the trace (9.63 KB, text/x-log)
2010-06-21 21:00 UTC, Jay Shaughnessy
no flags Details

Description Jay Shaughnessy 2010-06-21 21:00:42 UTC
Created attachment 425749 [details]
the trace

I had two bundles in my system.  I selected both in the bundle list view and clicked delete.  The server log showed the attached deadlock error.  One of the bundles did seem to get deleted.

The workaround would be to delete bundles one at a time.

Comment 1 John Mazzitelli 2010-12-20 20:08:34 UTC
git commit 3ddf5894f46a62d894a099d20db329e599fac42d

there is a new bundle manager API deleteBundles that lets the client give an array of bundle IDs and let the SLSB do the deletes. this avoids the client performing multiple async calls to the delete method thus causing the deadlock. i tested and deleting two bundles worked fine.

Comment 2 Sunil Kondkar 2011-02-15 12:25:51 UTC
Verified on build#1010 (Version: 4.0.0-SNAPSHOT  Build Number: ec5b64e)

Uploaded two bundle files. Selected both bundles in list view and clicked on 'Delete'. Both the bundles got deleted. The server did not show any error.

Marking this bug as verified.

Comment 3 Corey Welton 2011-05-24 01:09:48 UTC
Bookkeeping - closing bug - fixed in recent release.

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