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);