hemantk-12 commented on code in PR #7097:
URL: https://github.com/apache/ozone/pull/7097#discussion_r1750513702
##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/TransactionInfo.java:
##########
@@ -162,7 +162,16 @@ public String toString() {
*/
public static TransactionInfo readTransactionInfo(
DBStoreHAManager metadataManager) throws IOException {
- return metadataManager.getTransactionInfoTable().get(TRANSACTION_INFO_KEY);
+ return readTransactionInfo(metadataManager, false);
+ }
+
+ /**
+ * Return transaction info persisted in OM DB skipping cache.
+ */
+ public static TransactionInfo readTransactionInfo(
Review Comment:
Doesn't it matter in this case? We don't update the cache for
`transactionInfoTable` directly and once the transaction is flushed to DB, it
gets reflected in the 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]