Created attachment 740004 [details] stop-start Description of problem: Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. rhqctl install --agent 2. rhqctl start --agent in one terminal 3. simultaneously run rhqctl stop --agent Actual results: 12:56:03,225 ERROR [org.rhq.server.control.RHQControl] org.rhq.server.control.RHQControlException: Failed to stop services Expected results: no error is shown Additional info: attached is the screenshot of commands run I've marked bug with low priority since there are no exceptions in logs and nothing is broken with the overlapping stop-start operations.
Created attachment 740005 [details] start-stop please take into account that for both screenshots command on left screen was executed first
What is the expected behavior here? While issuing simultaneous commands is implicitly supported we cannot guarantee the outcome because it is OS and machine dependent. One command will always win and thus it can create problems for the second command. In your case looks like the actual code for stop ran first, before start could run; so there is nothing to stop. The output that you see looks good. Please provide additional clarifications.
Hi Stefan, Good question. From test case review meeting - system should be adequate to this scenario and wait for one process to finish before starting processing/execution of the second one.
Moving into ER3 as didn't make it into ER2.
It is not possible to implement the level of synchronization stated in comment #3 . The commands are issued independently from two separate terminals without knowledge of each other. The commands in the test case completed correctly, the reported error is normal. The order of execution is really system dependent and might not be obvious.