Bug 780307 (SOA-2708) - modeshape inconsistent repository operations
Summary: modeshape inconsistent repository operations
Keywords:
Status: CLOSED NOTABUG
Alias: SOA-2708
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: EDS
Version: 5.1.0.ER6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.1.0 GA
Assignee: Van Halbert
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-21 12:54 UTC by Aleksandar Kostadinov
Modified: 2011-01-04 05:08 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-04 05:08:27 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker MODE-1063 0 None None None Never
Red Hat Issue Tracker SOA-2708 0 None None None Never

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


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