Bug 1113507 - When saving, user sometimes gets 'data model updated' Error modal
Summary: When saving, user sometimes gets 'data model updated' Error modal
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Data Modeler
Version: 6.0.2
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ER3
: 6.1.0
Assignee: Walter Medvedeo
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-26 10:12 UTC by Zuzana Krejčová
Modified: 2020-03-27 19:40 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:40:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zuzana Krejčová 2014-06-26 10:12:03 UTC
Description of problem:
When saving changes done to the data model, user sometimes get Error modal with message "User <user> updated current project default://master@<repository>/<project> data model." and choice to "Re-open" or "Ignore". 
Changes are saved always.
No other user is working with the product at all, in any way, at the same time.

This does not happen always, it tends to happen more for larger projects (bigger data model) and when repeating the change-save sequence without delay.
(Waiting a bit more before hitting the Save button seems to have improved things.)
Looks like something related to the incremental build and Data Modeler regenerating the sources, but that is just a wild guess. 
Server log is clean. Whether the data model is simply saved or I get the Error modal when saving, it always contains only this, in the same order (received inc. build request -> inc. build request being processed -> KieModule added):

12:02:01,558 INFO  [org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder] (Thread-103) Incremental build request received for: default://master@bpms-assets/guvnor/src/main/java/guvnor/bugs/datamodeler/Ref1.java (deleted).
12:02:01,569 INFO  [org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder] (EJB default - 9) Incremental build request being processed: default://master@bpms-assets/guvnor/src/main/java/guvnor/bugs/datamodeler/Ref1.java (deleted).
12:02:03,041 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (EJB default - 9) KieModule was added:MemoryKieModule[ ReleaseId=org.jboss.qa.brms:guvnor:2.0]


Steps to Reproduce:
1. Change the data model.
2. Save the changes.
(3. Repeat if necessary.)

Comment 1 Zuzana Krejčová 2014-06-26 10:15:01 UTC
Reported with CR2, but the issue is there since at least CR1, probably even ER3. It is just quite hard to chase. It also manifests more often when testing in jenkins than when testing locally.

Comment 2 Walter Medvedeo 2014-07-03 16:48:47 UTC
The issue was solved in master and 6.1.x.

(master): 
https://github.com/droolsjbpm/kie-wb-common/commit/f5e9ab89928e67ebd737135655a01a6c435ebc28

(6.1.x): https://github.com/droolsjbpm/kie-wb-common/commit/093c85af134d13d9267168280e51d26a279d3333

I guess the flags should be managed in order to apply the fix into 6.0.x branch.

OBS: Due to recent dependencies changes, etc., the fix cannot be cherry-picked.

Comment 3 Zuzana Krejčová 2015-01-06 14:03:22 UTC
Seems fixed, as far as I can tell.


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