adoroszlai commented on a change in pull request #2741:
URL: https://github.com/apache/ozone/pull/2741#discussion_r730873575
##########
File path:
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/container/ContainerCommands.java
##########
@@ -168,14 +169,15 @@ public ContainerController getController() {
private String getClusterId(String storageDir) throws IOException {
Preconditions.checkNotNull(storageDir);
- final Path firstStorageDirPath = Files.list(Paths.get(storageDir, "hdds"))
- .filter(Files::isDirectory)
+ try (Stream<Path> stream = Files.list(Paths.get(storageDir, "hdds"))) {
+ final Path firstStorageDirPath = stream.filter(Files::isDirectory)
.findFirst().get().getFileName();
Review comment:
```
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/container/ContainerCommands.java
174: '.' has incorrect indentation level 8, expected level should be 10.
```
This line should be indented one more level.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]