Bug 781037 (SOA-3522)

Summary: DiskConnector ends in endless loop during login
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Jiri Pechanec <jpechane>
Component: EDSAssignee: Van Halbert <vhalbert>
Status: CLOSED NOTABUG QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.2.0.ER5CC: jpechane, vhalbert
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-3522
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
[jpechane@jpechane modeshape]$ java -version java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.10) (fedora-55.1.9.10.fc14-x86_64) OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode) [jpechane@jpechane modeshape]$ uname -a Linux jpechane 2.6.35.14-97.fc14.x86_64 #1 SMP Sat Sep 17 00:15:37 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Last Closed: 2011-10-26 11:27:11 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:
Attachments:
Description Flags
loop.tgz
none
diskrep.tgz
none
modeshape-connector-disk-SOA3522.jar
none
soa3522.log.gz
none
modeshape-config-van.xml none

Description Jiri Pechanec 2011-10-25 10:54:06 UTC
project_key: SOA

See attached logs and test case. When I try to login to JCR repository with DiskConnector then the following sytacj trace is generated in the server
2011-10-25 12:43:13,311 INFO  [STDOUT] (Thread-35) [TestNG] Running:
  InContainer
2011-10-25 12:43:13,318 INFO  [STDOUT] (Thread-35) Retrieving server repository: test-disk
2011-10-25 12:43:13,328 DEBUG [org.modeshape.jcr.JcrRepositoryFactory] (Thread-35) Trying to load ModeShape JCR Repository with parameters: {org.modeshape.jcr.URL=jndi:jcr/local?repositoryName=test-disk}
2011-10-25 12:43:13,329 DEBUG [org.modeshape.jcr.JcrRepositoryFactory] (Thread-35) Trying to access repository: test-disk
2011-10-25 12:43:13,330 TRACE [org.modeshape.graph.connector.base.Connection] (Thread-35) MapRepositoryConnection.execute(...) took 00:00:00.000,049
2011-10-25 12:43:13,403 ERROR [STDERR] (Thread-35) java.lang.StackOverflowError
2011-10-25 12:43:13,404 ERROR [STDERR] (Thread-35)      at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
2011-10-25 12:43:13,404 ERROR [STDERR] (Thread-35)      at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:243)
2011-10-25 12:43:13,404 ERROR [STDERR] (Thread-35)      at java.io.File.exists(File.java:750)
2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35)      at org.modeshape.connector.disk.DiskWorkspace.fileFor(DiskWorkspace.java:218)
2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35)      at org.modeshape.connector.disk.DiskWorkspace.getNode(DiskWorkspace.java:174)
2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35)      at org.modeshape.connector.disk.DiskWorkspace.getNode(DiskWorkspace.java:63)
2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35)      at org.modeshape.graph.connector.base.MapTransaction.getNode(MapTransaction.java:136)
2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35)      at org.modeshape.graph.connector.base.MapTransaction.getNode(MapTransaction.java:177)
2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35)      at org.modeshape.graph.connector.base.MapTransaction.getNode(MapTransaction.java:66)
2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35)      at org.modeshape.graph.connector.base.BaseTransaction.getRootNode(BaseTransaction.java:121)
2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35)      at org.modeshape.graph.connector.base.BaseTransaction.getNode(BaseTransaction.java:127)
2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35)      at org.modeshape.graph.connector.base.MapTransaction.getNode(MapTransaction.java:182)
2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35)      at org.modeshape.graph.connector.base.MapTransaction.getNode(MapTransaction.java:66)
.
.
.

The code probably contains an infinite loop under certain conditions

Comment 1 Jiri Pechanec 2011-10-25 10:55:01 UTC
Attachment: Added: loop.tgz


Comment 2 Van Halbert 2011-10-25 12:03:05 UTC
Link: Added: This issue Cloned to SOA-3523


Comment 4 Jiri Pechanec 2011-10-25 14:24:57 UTC
Attachment: Added: diskrep.tgz


Comment 5 Randall Hauch 2011-10-25 14:51:23 UTC
I've attached a new JAR file for the disk connector, with extra debug log statements and some extra exception handling. Please retest locally with this JAR (note it is named differently than the existing JAR in the kit), and turn on debug logging (at least in the 'org.modeshape.connector.disk' packages).

Comment 6 Randall Hauch 2011-10-25 14:51:23 UTC
Attachment: Added: modeshape-connector-disk-SOA3522.jar


Comment 7 Jiri Pechanec 2011-10-25 14:58:42 UTC
Attachment: Added: soa3522.log.gz


Comment 9 Van Halbert 2011-10-25 16:30:10 UTC
Attachment: Added: modeshape-config-van.xml


Comment 10 Jiri Pechanec 2011-10-26 10:40:20 UTC
The issue was identified
mode:repositoryRootPath="/home/jpechane/workspace/SOATests/tests/modeshape/build/testdiskrepository" works
mode:repositoryRootPath="/home/jpechane/workspace/SOATests/tests/modeshape/build/test-disk-repository" does not work

See the difference: dashes

Comment 11 Jiri Pechanec 2011-10-26 11:27:11 UTC
So I finally find the issue. There was another process deleting the directory of Disk connector after server start-up. So it is not a real bug, just misleading error report.