Bug 830996 - plugin container's OperationManager needs to support concurrent operations for different resources
Summary: plugin container's OperationManager needs to support concurrent operations fo...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugin Container
Version: 4.4
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: RHQ 4.5.0
Assignee: John Mazzitelli
QA Contact: Mike Foley
URL:
Whiteboard:
: 718091 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-11 21:35 UTC by John Mazzitelli
Modified: 2013-09-01 10:12 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-09-01 10:12:57 UTC
Embargoed:


Attachments (Terms of Use)
This one just calls rhq-cli.bat (174 bytes, application/octet-stream)
2012-06-11 21:40 UTC, Jay Shaughnessy
no flags Details
This is the CLI script that runs (684 bytes, application/javascript)
2012-06-11 21:41 UTC, Jay Shaughnessy
no flags Details

Description John Mazzitelli 2012-06-11 21:35:07 UTC
The plugin container can support running operations on different resources concurrently. If you ask to invoke 2 or more operations on the same resource, those execute serially, but if you invoke an operation on resource 1 and another operation on resource 2, they can theoretically be allowed to run concurrently.

The PC doesn't do that.

Need to fix the OperationManager and write a unit test to show that this works.

Comment 1 John Mazzitelli 2012-06-11 21:38:28 UTC
git master commit: 04b75f0

the operation manager thread pool configuration needed to be adjusted. commited new unit test ParallelOperationsTest to test this.

Comment 2 Jay Shaughnessy 2012-06-11 21:39:52 UTC
I tested this using the attached scripts.  It hung before the fix and works after the fix.

Comment 3 Jay Shaughnessy 2012-06-11 21:40:59 UTC
Created attachment 591030 [details]
This one just calls rhq-cli.bat

Comment 4 Jay Shaughnessy 2012-06-11 21:41:54 UTC
Created attachment 591031 [details]
This is the CLI script that runs

Comment 5 Jay Shaughnessy 2012-06-11 21:44:15 UTC
Test Notes: Tte attached scripts would need to be updated for your environment.  Basically script-op.bat is the one which is the Script resource.  It invokes the CLI, which connects back to the server and executes an operation on RHQ Agent, via the second attachement - the CLI script.

Comment 6 Charles Crouch 2012-07-17 21:44:29 UTC
Non critical fix - retargeting at rhq4.5

Comment 7 Rui Alves 2012-07-19 09:33:17 UTC
*** Bug 718091 has been marked as a duplicate of this bug. ***

Comment 8 Heiko W. Rupp 2013-09-01 10:12:57 UTC
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.


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