You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2020/05/02 11:51:38 UTC

[jena] branch master updated: Investigate intermittent test failure

This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jena.git


The following commit(s) were added to refs/heads/master by this push:
     new ab7882a  Investigate intermittent test failure
ab7882a is described below

commit ab7882a73445c7a75e811eb58d06211c410891b0
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Sat May 2 12:51:15 2020 +0100

    Investigate intermittent test failure
---
 .../java/org/apache/jena/tdb2/sys/TestDatabaseOps.java | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/jena-db/jena-tdb2/src/test/java/org/apache/jena/tdb2/sys/TestDatabaseOps.java b/jena-db/jena-tdb2/src/test/java/org/apache/jena/tdb2/sys/TestDatabaseOps.java
index 4da3261..91c6bb7 100644
--- a/jena-db/jena-tdb2/src/test/java/org/apache/jena/tdb2/sys/TestDatabaseOps.java
+++ b/jena-db/jena-tdb2/src/test/java/org/apache/jena/tdb2/sys/TestDatabaseOps.java
@@ -125,22 +125,20 @@ public class TestDatabaseOps
     }
 
     @Test public void compact_prefixes_3() {
-        // This test fails sometimes with an NPE at the marked line when run with Java14 on ASF Jenkins.
-        // It does not failure anywhere else.
-        // It does not always fail
-        // There isn't a pointer deference to NPE!
-        //java.lang.NullPointerException
-        //        at org.apache.jena.tdb2.sys.TestDatabaseOps.compact_prefixes_3(TestDatabaseOps.java:142)
-        // No more stack
+        // 2020-04:
+        // This test fails at "HERE" sometimes with an NPE at the marked line when run with Java14 on ASF Jenkins.
+        // The NPE is from java.nio.file.Files.provider.
+        // It does not fail anywhere else and it does not always fail.
+        //   This suggests it is an environmental issue with the JDK14 job.
         // Attempt to find out what is going on:
-        try { 
+        try {
             compact_prefixes_3_test();
         } catch (Throwable th) {
             th.printStackTrace();
             throw th;
         }
     }
-    
+
     private void compact_prefixes_3_test() {
         // prefixes across compaction.
         DatasetGraph dsg = DatabaseMgr.connectDatasetGraph(dir);
@@ -156,7 +154,7 @@ public class TestDatabaseOps
         DatasetGraph dsg1 = dsgs.get();
         Location loc1 = ((DatasetGraphTDB)dsg1).getLocation();
 
-        DatabaseMgr.compact(dsgs); // HERE : Line 142 before investigation code added.
+        DatabaseMgr.compact(dsgs); // HERE
 
         Graph g2 = dsgs.getDefaultGraph();