diff options
author | Harald Musum <musum@verizonmedia.com> | 2022-10-12 13:18:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-12 13:18:42 +0200 |
commit | 022191c0b98478fc700f095d9cba3d119fb9e9e5 (patch) | |
tree | d96804a746fd053530514dad9ed54ca25db58e80 | |
parent | b8f4e3093006d4bac85b84a969019e1b12af621e (diff) | |
parent | 95fb92d6e0ad0eeae125c67727971b80a197492a (diff) |
Merge pull request #24402 from vespa-engine/hakonhall/use-unixpathexists
Use UnixPath::exists
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/coredump/CoredumpHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/coredump/CoredumpHandler.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/coredump/CoredumpHandler.java index ece494a34d7..54aa136d877 100644 --- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/coredump/CoredumpHandler.java +++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/coredump/CoredumpHandler.java @@ -167,7 +167,7 @@ public class CoredumpHandler { */ String getMetadata(NodeAgentContext context, ContainerPath coredumpDirectory, Supplier<Map<String, Object>> nodeAttributesSupplier) throws IOException { UnixPath metadataPath = new UnixPath(coredumpDirectory.resolve(METADATA_FILE_NAME)); - if (!Files.exists(metadataPath.toPath())) { + if (!metadataPath.exists()) { ContainerPath coredumpFile = findCoredumpFileInProcessingDirectory(coredumpDirectory); Map<String, Object> metadata = new HashMap<>(coreCollector.collect(context, coredumpFile)); metadata.putAll(nodeAttributesSupplier.get()); |