diff options
author | Arne Juul <arnej@yahoo-inc.com> | 2018-07-26 09:14:56 +0200 |
---|---|---|
committer | Arne Juul <arnej@yahoo-inc.com> | 2018-07-26 09:14:56 +0200 |
commit | 470b72753be0c41f00eb977271fec9cf6710807b (patch) | |
tree | c14334d8578d5e75466fc512cbcd1d773d01c486 /node-admin | |
parent | e854864520d3734ed1baced433b9883f61964cc3 (diff) |
we want to wait until the "du" process is dead, to ensure not starting too many of them
Diffstat (limited to 'node-admin')
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/StorageMaintainer.java | 1 |
1 files changed, 1 insertions, 0 deletions
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 a7bf22591d4..ea92ca9b56f 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 @@ -200,6 +200,7 @@ public class StorageMaintainer { Process duCommand = new ProcessBuilder().command(command).start(); if (!duCommand.waitFor(60, TimeUnit.SECONDS)) { duCommand.destroy(); + duCommand.waitFor(); throw new RuntimeException("Disk usage command timed out, aborting."); } String output = IOUtils.readAll(new InputStreamReader(duCommand.getInputStream())); |