-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.2.0
-
Component/s: None
-
Labels:
Currently in the code https://github.com/apache/storm/blob/master/storm-server/src/main/java/org/apache/storm/healthcheck/HealthChecker.java#L122-L130
if (process.exitValue() != 0) { String str; InputStream stdin = process.getInputStream(); BufferedReader reader = new BufferedReader(new InputStreamReader(stdin)); while ((str = reader.readLine()) != null) { if (str.startsWith("ERROR")) { LOG.warn("The healthcheck process {} exited with code {}", script, process.exitValue()); return FAILED; } } return FAILED_WITH_EXIT_CODE; }
The healthcheck doesn't really print out the error message so it's not easy to debug when healthcheck fails.
- links to