From b3ed22261a7baa1c9abddde22b86abd74f9b5bcc Mon Sep 17 00:00:00 2001 From: Finn Carroll Date: Fri, 14 Jun 2024 21:42:14 +0000 Subject: [PATCH] Debug --- gradle/run.gradle | 6 +----- .../store/remote/directory/RemoteSnapshotDirectory.java | 4 ++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gradle/run.gradle b/gradle/run.gradle index 524ae1fa10e80..c898603fa82e6 100644 --- a/gradle/run.gradle +++ b/gradle/run.gradle @@ -46,14 +46,10 @@ testClusters { } } - // DEBUG SETTINGS - DO NOT COMMIT + // DEBUG SETTINGS - NO COM setting 'node.search.cache.size', '100b' - //setting 'cluster.filecache.remote_data_ratio', '0' - setting 'node.roles', '[data,ingest,cluster_manager,search]' -// setting 'node.roles', '[search]' setting 'path.repo', '/Users/carrofin/fdev/DEBUG/STORES/SNAPS' -// setting 'path.data', '/fakemount' setting 'path.data', '/Users/carrofin/fdev/DEBUG/STORES/DATA' } diff --git a/server/src/main/java/org/opensearch/index/store/remote/directory/RemoteSnapshotDirectory.java b/server/src/main/java/org/opensearch/index/store/remote/directory/RemoteSnapshotDirectory.java index 38bc56fe30d01..5bc0c8e192d62 100644 --- a/server/src/main/java/org/opensearch/index/store/remote/directory/RemoteSnapshotDirectory.java +++ b/server/src/main/java/org/opensearch/index/store/remote/directory/RemoteSnapshotDirectory.java @@ -184,6 +184,10 @@ public void close() throws IOException { for (WeakReference ref : cloneRefs) { IndexInput input = ref.get(); if (input != null) { + + System.out.println("CLOSING FLOATING II CLONE!"); +// throw new RuntimeException("DEBUG BREAK"); + input.close(); } cloneRefs.remove(ref);