prashantpogde commented on code in PR #7112:
URL: https://github.com/apache/ozone/pull/7112#discussion_r1731934807
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyPurgeRequest.java:
##########
@@ -74,14 +75,12 @@ public OMClientResponse validateAndUpdateCache(OzoneManager
ozoneManager, TermIn
try {
SnapshotInfo fromSnapshotInfo = null;
if (fromSnapshot != null) {
- fromSnapshotInfo = ozoneManager.getMetadataManager()
- .getSnapshotInfoTable().get(fromSnapshot);
+ fromSnapshotInfo = SnapshotUtils.getSnapshotInfo(ozoneManager,
fromSnapshot);
Review Comment:
perhaps one more thing that we can do is to pass an additional flag to look
from just cache where we expect the entry to be there. Other places where we
are not sure, the flag could be true to allow read from disk is ok.
--
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]