swamirishi commented on code in PR #9141:
URL: https://github.com/apache/ozone/pull/9141#discussion_r2430888963


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/OmSnapshotLocalDataManager.java:
##########
@@ -57,6 +74,13 @@ public void computeAndSetChecksum(Yaml yaml, 
OmSnapshotLocalData data) throws IO
         data.computeAndSetChecksum(yaml);
       }
     };
+    this.versionNodeMap = new HashMap<>();
+    init();
+  }
+
+  @VisibleForTesting
+  Map<UUID, SnapshotVersionsMeta> getVersionNodeMap() {
+    return versionNodeMap;

Review Comment:
   This would be an extra copy unncessarily it was made package private just 
for tests otherwise we would want to keep this Map completely private



-- 
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]

Reply via email to