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 js...@apache.org on 2026/03/21 05:57:00 UTC

(jackrabbit-oak) branch jsedding/OAK-12134-fix-unit-test-cleanup created (now 1c630fe3ad)

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

jsedding pushed a change to branch jsedding/OAK-12134-fix-unit-test-cleanup
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


      at 1c630fe3ad OAK-12134 - compaction with concurrent writes can increase segmentstore size

This branch includes the following new commits:

     new 1c630fe3ad OAK-12134 - compaction with concurrent writes can increase segmentstore size

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-12134 - compaction with concurrent writes can increase segmentstore size

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

jsedding pushed a commit to branch jsedding/OAK-12134-fix-unit-test-cleanup
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit 1c630fe3ad5fae82cdb4ed31955fdedb446dd669
Author: Julian Sedding <js...@apache.org>
AuthorDate: Sat Mar 21 06:56:37 2026 +0100

    OAK-12134 - compaction with concurrent writes can increase segmentstore size
    
    - fix test cleanup; data files should be deleted after FileStore is closed
---
 .../jackrabbit/oak/segment/test/FileStoreParameterResolver.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/test/FileStoreParameterResolver.java b/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/test/FileStoreParameterResolver.java
index ab13df4b6d..5899874834 100644
--- a/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/test/FileStoreParameterResolver.java
+++ b/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/test/FileStoreParameterResolver.java
@@ -116,12 +116,12 @@ public class FileStoreParameterResolver implements ParameterResolver {
     @SuppressWarnings("unchecked")
     private <T extends AbstractFileStore> T getOrCreateFileStore(ExtensionContext ctx, Class<T> type) {
         ExtensionContext.Store store = ctx.getStore(NAMESPACE);
+        CloseablePath segmentstoreDir = store.getOrComputeIfAbsent("tempdir-for-" + FileStore.class.getSimpleName(),
+                key -> new CloseablePath(computePathForTest(ctx)),
+                CloseablePath.class
+        );
         return store.getOrComputeIfAbsent(type.getName(), k -> {
             try {
-                CloseablePath segmentstoreDir = store.getOrComputeIfAbsent("tempdir-for-" + FileStore.class.getSimpleName(),
-                        key -> new CloseablePath(computePathForTest(ctx)),
-                        CloseablePath.class
-                );
                 Files.createDirectories(segmentstoreDir.path);
                 FileStoreBuilder fileStoreBuilder = FileStoreBuilder.fileStoreBuilder(segmentstoreDir.path.toFile())
                         .withStringCacheSize(0)