You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by re...@apache.org on 2024/10/02 13:51:19 UTC

(jackrabbit-oak) branch OAK-11159 created (now ca4a55eaa0)

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

reschke pushed a change to branch OAK-11159
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


      at ca4a55eaa0 OAK-11159: RDBDocumentStoreJDBCTest: improve diagnostics

This branch includes the following new commits:

     new ca4a55eaa0 OAK-11159: RDBDocumentStoreJDBCTest: improve diagnostics

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(jackrabbit-oak) 01/01: OAK-11159: RDBDocumentStoreJDBCTest: improve diagnostics

Posted by re...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

reschke pushed a commit to branch OAK-11159
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit ca4a55eaa0bdf115281a89ec11e2a855fcecb60b
Author: Julian Reschke <re...@apache.org>
AuthorDate: Wed Oct 2 14:51:04 2024 +0100

    OAK-11159: RDBDocumentStoreJDBCTest: improve diagnostics
---
 .../plugins/document/rdb/RDBDocumentStoreJDBCTest.java   | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStoreJDBCTest.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStoreJDBCTest.java
index 8fc4b08264..a3e5be6f01 100755
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStoreJDBCTest.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStoreJDBCTest.java
@@ -34,6 +34,7 @@ import java.sql.PreparedStatement;
 import java.sql.ResultSet;
 import java.sql.SQLException;
 import java.sql.Statement;
+import java.time.Duration;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashSet;
@@ -54,6 +55,8 @@ import org.apache.jackrabbit.oak.plugins.document.UpdateOp;
 import org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.QueryCondition;
 import org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.RDBTableMetaData;
 import org.apache.jackrabbit.oak.plugins.document.util.Utils;
+import org.junit.After;
+import org.junit.Before;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.TestName;
@@ -71,6 +74,19 @@ public class RDBDocumentStoreJDBCTest extends AbstractDocumentStoreTest {
     private RDBDocumentStoreDB dbInfo;
     private static final Logger LOG = LoggerFactory.getLogger(RDBDocumentStoreJDBCTest.class);
 
+    private long startTime = System.currentTimeMillis();
+
+    @Before
+    public void setUp() throws Exception {
+        LOG.info("Start: {}", name.getMethodName());
+    }
+
+    @After
+    public void tearDown() throws Exception {
+        long elapsed = System.currentTimeMillis() - startTime;
+        LOG.info("Done: {}, elapsed = {}ms ({})", name.getMethodName(), elapsed, Duration.ofMillis(elapsed));
+    }
+
     @Rule
     public TestName name= new TestName();