Gargi-jais11 commented on code in PR #9173:
URL: https://github.com/apache/ozone/pull/9173#discussion_r2447451899
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OMDBCheckpointServlet.java:
##########
@@ -349,12 +349,12 @@ private Set<Path> getSnapshotDirs(DBCheckpoint
checkpoint, boolean waitForDir)
Set<Path> snapshotPaths = new HashSet<>();
// get snapshotInfo entries
- OmMetadataManagerImpl checkpointMetadataManager =
+ try (OmMetadataManagerImpl checkpointMetadataManager =
OmMetadataManagerImpl.createCheckpointMetadataManager(
conf, checkpoint);
- try (TableIterator<String, ? extends Table.KeyValue<String, SnapshotInfo>>
- iterator = checkpointMetadataManager
- .getSnapshotInfoTable().iterator()) {
+ TableIterator<String, ? extends Table.KeyValue<String, SnapshotInfo>>
+ iterator = checkpointMetadataManager
+ .getSnapshotInfoTable().iterator()) {
Review Comment:
Similarly over here.
--
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]