rmatharu commented on a change in pull request #1533:
URL: https://github.com/apache/samza/pull/1533#discussion_r717111009
##########
File path:
samza-core/src/main/java/org/apache/samza/container/host/PosixCommandBasedStatisticsGetter.java
##########
@@ -67,17 +43,17 @@ private String getCommandOutput(String[] cmdArray) throws
IOException {
*/
private List<String> getAllCommandOutput(String[] cmdArray) throws
IOException {
Process executable = Runtime.getRuntime().exec(cmdArray);
- BufferedReader processReader = null;
- List<String> psOutput;
+ BufferedReader processReader;
+ List<String> psOutput = new ArrayList<>();
Review comment:
Mayb add a log.info("executing commands {0}, cmdArray);
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]