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 2025/01/28 12:02:50 UTC

(jackrabbit-oak) branch trunk updated: OAK-11434: oak-run: DataStoreCheckCommand tries to move open files (#2030)

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

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


The following commit(s) were added to refs/heads/trunk by this push:
     new e56843b554 OAK-11434: oak-run: DataStoreCheckCommand tries to move open files (#2030)
e56843b554 is described below

commit e56843b5541ad07b7925861861cd9b7948a5832a
Author: Julian Reschke <re...@apache.org>
AuthorDate: Tue Jan 28 13:02:45 2025 +0100

    OAK-11434: oak-run: DataStoreCheckCommand tries to move open files (#2030)
---
 .../main/java/org/apache/jackrabbit/oak/run/DataStoreCheckCommand.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/oak-run/src/main/java/org/apache/jackrabbit/oak/run/DataStoreCheckCommand.java b/oak-run/src/main/java/org/apache/jackrabbit/oak/run/DataStoreCheckCommand.java
index 5ce6a700d0..389b9bb351 100644
--- a/oak-run/src/main/java/org/apache/jackrabbit/oak/run/DataStoreCheckCommand.java
+++ b/oak-run/src/main/java/org/apache/jackrabbit/oak/run/DataStoreCheckCommand.java
@@ -459,6 +459,7 @@ public class DataStoreCheckCommand implements Command {
                 }
             );
             writer.flush();
+            writer.close();
             sort(marked, idComparator);
 
             System.out.println(count.get() + " blob references found");
@@ -564,6 +565,7 @@ public class DataStoreCheckCommand implements Command {
                 }
 
                 writer.flush();
+                writer.close();
                 sort(references, idComparator);
 
                 System.out.println(count.get() + " blob references found");