summaryrefslogtreecommitdiffstats
path: root/node-admin
diff options
context:
space:
mode:
authorValerij Fredriksen <valerij92@gmail.com>2020-04-21 11:09:42 +0200
committerValerij Fredriksen <valerij92@gmail.com>2020-04-22 14:02:40 +0200
commit95a6fc2366a2348f378ffc1c251296fc95a80726 (patch)
treee201b5e2e77be83c001550827573835170a662f7 /node-admin
parentc8dde657c38721f3f55182143a892e40bdb14db3 (diff)
Throw ConvergenceException instead
Diffstat (limited to 'node-admin')
-rw-r--r--node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/StorageMaintainer.java6
1 files changed, 3 insertions, 3 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 1684c0dd2a1..c1897c3c416 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
@@ -89,7 +89,7 @@ public class StorageMaintainer {
String[] results = output.split("\t");
if (results.length != 2) {
- throw new RuntimeException("Result from disk usage command not as expected: " + output);
+ throw new ConvergenceException("Result from disk usage command not as expected: " + output);
}
return 1024 * Long.parseLong(results[0]);
@@ -174,11 +174,11 @@ public class StorageMaintainer {
String output = uncheck(() -> Files.readAllLines(Paths.get("/proc/cpuinfo")).stream()
.filter(line -> line.startsWith("microcode"))
.findFirst()
- .orElseThrow(() -> new RuntimeException("No microcode information found in /proc/cpuinfo")));
+ .orElseThrow(() -> new ConvergenceException("No microcode information found in /proc/cpuinfo")));
String[] results = output.split(":");
if (results.length != 2) {
- throw new RuntimeException("Result from detect microcode command not as expected: " + output);
+ throw new ConvergenceException("Result from detect microcode command not as expected: " + output);
}
return results[1].trim();