[ 
https://issues.apache.org/jira/browse/JENA-296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478753#comment-13478753
 ] 

Andy Seaborne commented on JENA-296:
------------------------------------

I have found that the tdbloader3 test is catching a real problem.  The code is 
trying to delete 2 files while having the datastore open, which on Windows is 
not going to work.  On linux, the file on disk would be deleted at that point.

So, unfixed, tdbloader3 does not run on windows.  I have tested this with Jena 
2.7.3 and do now see the same failure occurring.

The advantage of tdbloader3 is that it uses the techniques of tdbloader2 in a 
platform portable way but it's not achiving that as it is.

Proposal: move tdbloader3 to "Experimental" as an external tool on top of TDB.

(good news - it does not need to be in the codebase to compile)

                
> tdb.TS_TDBLoader3 test fails in Windows
> ---------------------------------------
>
>                 Key: JENA-296
>                 URL: https://issues.apache.org/jira/browse/JENA-296
>             Project: Apache Jena
>          Issue Type: Bug
>    Affects Versions: TDB 0.9.4
>         Environment: Windows 7 64-bit
>            Reporter: Stephen Allen
>            Assignee: Stephen Allen
>            Priority: Minor
>
> The tdb.TS_TDBLoader3 test fails in Windows.  See stacktrace [1].
> Work-around: run maven with "-DskipTests" command line argument.
> [1] Stacktrace from failing test:
> Running tdb.TS_TDBLoader3
> 09:51:28 ERROR BPlusTreeRewriter         :: **** Not the root: 1024
> com.hp.hpl.jena.tdb.index.bplustree.BPTreeException
>         at 
> com.hp.hpl.jena.tdb.index.bplustree.BPlusTreeRewriter.packIntoBPlusTree(BPlusTreeRewriter.java:89)
>         at 
> org.apache.jena.tdb.store.bulkloader3.NodeTableBuilder2.buildNodeTableBPTreeIndex(NodeTableBuilder2.java:296)
>         at 
> org.apache.jena.tdb.store.bulkloader3.NodeTableBuilder2.close(NodeTableBuilder2.java:172)
>         at tdb.tdbloader3.exec(tdbloader3.java:216)
>         at arq.cmdline.CmdMain.mainMethod(CmdMain.java:101)
>         at arq.cmdline.CmdMain.mainRun(CmdMain.java:63)
>         at arq.cmdline.CmdMain.mainRun(CmdMain.java:50)
>         at tdb.tdbloader3.main(tdbloader3.java:108)
>         at tdb.TestTDBLoader3.run(TestTDBLoader3.java:120)
>         at tdb.TestTDBLoader3.test(TestTDBLoader3.java:88)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>         at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>         at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>         at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>         at 
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>         at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
>         at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:69)
>         at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:48)
>         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
>         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
>         at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
>         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
>         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
>         at org.junit.runners.ParentRunner.run(ParentRunner.java:292)
>         at org.junit.runners.Suite.runChild(Suite.java:128)
>         at org.junit.runners.Suite.runChild(Suite.java:24)
>         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
>         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
>         at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
>         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
>         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
>         at org.junit.runners.ParentRunner.run(ParentRunner.java:292)
>         at org.junit.runners.Suite.runChild(Suite.java:128)
>         at org.junit.runners.Suite.runChild(Suite.java:24)
>         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
>         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
>         at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
>         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
>         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
>         at org.junit.runners.ParentRunner.run(ParentRunner.java:292)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at 
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>         at 
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>         at 
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>         at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
>         at 
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to