From 26bfb0ded3cb4add3247ffa031e372aee955f512 Mon Sep 17 00:00:00 2001 From: Valerij Fredriksen Date: Fri, 4 Feb 2022 09:54:51 +0100 Subject: Fix comment --- .../vespa/hosted/node/admin/maintenance/StorageMaintainer.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'node-admin') diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/StorageMaintainer.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/StorageMaintainer.java index ac4d58374c1..b6fb2bf345f 100644 --- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/StorageMaintainer.java +++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/StorageMaintainer.java @@ -215,9 +215,10 @@ public class StorageMaintainer { } new UnixPath(context.paths().of("/")).deleteRecursively(); - // Container FS root cannot be created from ContainerPath, it is therefore important that it exists as long as - // NodeAgent is running. Normally the root is only created when NodeAgent is first started. Because non-tenant - // nodes are never removed from node-repo, we immediately re-create the new root after archiving the previous + // Operations on ContainerPath will fail if Container FS root doesn't exist, it is therefore important that + // it exists as long as NodeAgent is running. Normally the root is only created when NodeAgent is first + // started. Because non-tenant nodes are never removed from node-repo, we immediately re-create the new root + // after archiving the previous if (context.nodeType() != NodeType.tenant) context.paths().of("/").getFileSystem().createRoot(); } -- cgit v1.2.3