Bug 780307 (SOA-2708)

Summary: modeshape inconsistent repository operations
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Aleksandar Kostadinov <akostadinov>
Component: EDSAssignee: Van Halbert <vhalbert>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.1.0.ER6CC: rhauch
Target Milestone: ---   
Target Release: 5.1.0 GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-2708
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-04 05:08:27 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:

Description Aleksandar Kostadinov 2010-12-21 12:54:46 UTC
project_key: SOA

I see some inconsistency in persisting repository contents and/or querying it. I'm running a simple application that basically puts a file node into a newly created repository and then queries for it and eventually removes the node.

Usually all operations execute fine but sometimes these fail. I'm running tests against multiple database servers. You can see test results on  https://hudson.qa.jboss.com/hudson/view/SOA-Release/job/soa-modeshape-ddl/92/artifact/test-output/Groovy%20Test%20Suite/index.html

Please ignore DB2 as it fails anyways for other reasons.

Basically the file node is inserved, the session has its save() method invoked but subsequent queries are not seeing the file node. You can see the index.jsp that is used to perform the repository operations at https://svn.devel.redhat.com/repos/jboss-qa/hudson/config_repository/resources/soa/modeshape/basic-repo-test.war/index.jsp

My wild guess is that the save() operation returns before changes are actually persisted in the DB thus queries don't see the file node. Or could that be something with caching? I'm sure that file is eventually persisted into the database because I see it looking at the MODE_SIMPLE_NODE database table. I don't know what spec says wrt seeing your changes after a save() call if it is specified at all. But IMHO such behavior could be confusing.

I've seen this problem with some previous ERs once or twice but since there were a couple of other bugs within them, this didn't catch my attention. Looking at my previous builds I spotted one that happened with the preconfigured "eds" repository. Note that index.jsp there is an earlier version also. (https://hudson.qa.jboss.com/hudson/view/SOA-Release/job/soa-modeshape-ddl/73/ look at "eds" test only)

Comment 1 Van Halbert 2010-12-21 13:38:09 UTC
Link: Added: This issue Cloned to SOA-2710


Comment 2 Anne-Louise Tangring 2010-12-21 17:13:55 UTC
This is under investigation. It is a candidate for SOA 5.1.0.

Comment 3 Randall Hauch 2010-12-21 17:38:07 UTC
I just rejected MODE-1063 because this behavior is as intended/designed. For details, see MODE-1063.

Comment 4 Van Halbert 2010-12-21 17:41:29 UTC
Behavior is as intended/designed.

Comment 5 Aleksandar Kostadinov 2010-12-22 08:23:01 UTC
Thanks, that sounds reasonable although unexpected by these used to rdbms.

Comment 6 Dana Mison 2011-01-04 05:08:27 UTC
re-opened by accident