Bug 1015054

Summary: Building a project twice at the same time may cause problems
Product: [Retired] JBoss BRMS Platform 6 Reporter: Zuzana Krejčová <zkrejcov>
Component: Business CentralAssignee: Toni Rikkola <trikkola>
Status: CLOSED CURRENTRELEASE QA Contact: Zuzana Krejčová <zkrejcov>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.0CC: etirelli, lpetrovi
Target Milestone: ER6   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:19:51 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
server log from 'server started' msg to SIGSEGV (appended as well) none

Description Zuzana Krejčová 2013-10-03 11:33:51 UTC
Created attachment 807019 [details]
server log from 'server started' msg to SIGSEGV (appended as well)

Description of problem:
When you click Build & Deploy, the selected project starts building. You can than hit the button again. If you do so, you may get:

WARN  [com.arjuna.ats.jta] ... ARJUNA016029: SynchronizationImple.afterCompletion - failed for org.drools.persistence.jta.JtaTransactionSynchronizationAdapter@2811375c with exception: java.lang.IllegalStateException: Illegal method call. This session was previously disposed.

in the server log, the builds still succeed. You may also get:

ERROR [org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl] ... Deployment of unit <groupID>:<artifact>:<version> failed: RuntimeManager with id org.jboss.qa.brms:console:1.0 is already registered: org.jbpm.console.ng.bd.exception.DeploymentException: RuntimeManager with id <groupID>:<artifact>:<version> is already registered

in the server log, one of the builds may fail then. If you're lucky (and probably only if you do this a few times), you can get even this:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000003a37b44c4f, pid=648, tid=140365116819200
...

which aborts your server. Getting to this point sometimes takes longer, sometimes less.


While the last is a Bad Thing, so far it seems you actually have to do this on purpose, many times. I could understand doing this once or twice - by mistake or when the building process takes too long and the user gets impatient.


Version-Release number of selected component (if applicable):
BPMS 6.0 ER3


Steps to Reproduce:
Repeatedly click Build & Deploy on the same project, without waiting for success/failure notification.

Comment 1 manstis 2013-10-04 10:39:07 UTC
Toni, simply disabling the "Build & Deploy" button might be enough for now - and enable it again when the "Build & Deploy" call returns.

Comment 2 Zuzana Krejčová 2014-01-07 17:17:20 UTC
Verified with ER7 - it's not possible to click Build twice at the same time now.