ChenSammi commented on code in PR #6046:
URL: https://github.com/apache/ozone/pull/6046#discussion_r1469159750


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMRecoverLeaseRequest.java:
##########
@@ -238,7 +236,7 @@ private RecoverLeaseResponse doWork(OzoneManager 
ozoneManager,
       openKeyInfo.setModificationTime(Time.now());
       // add to cache.
       omMetadataManager.getOpenKeyTable(getBucketLayout()).addCacheEntry(
-          new CacheKey<>(dbOpenFileKey), CacheValue.get(transactionLogIndex, 
openKeyInfo));
+          dbOpenFileKey, openKeyInfo, transactionLogIndex);

Review Comment:
   Okay, it's below one, actually does the same thing.  Is they any benefit use 
the following one instead of the current one? 
   
   ```
   default void addCacheEntry(KEY cacheKey, VALUE value, long epoch) 
   ```



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