swamirishi commented on code in PR #7179:
URL: https://github.com/apache/ozone/pull/7179#discussion_r1757542767
##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/TransactionInfo.java:
##########
@@ -162,7 +163,15 @@ public String toString() {
*/
public static TransactionInfo readTransactionInfo(
DBStoreHAManager metadataManager) throws IOException {
- return metadataManager.getTransactionInfoTable().get(TRANSACTION_INFO_KEY);
+ return
metadataManager.getTransactionInfoTable().getSkipCache(TRANSACTION_INFO_KEY);
Review Comment:
Why even check the cache if the cache datastructure is not going to have it.
SkipCache would directly go to rocksdb and check it, in contrary to the get
method making a roundtrip to cache and then going to rocksdb when not found in
cache.
--
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]