gavinchou commented on code in PR #67813:
URL: https://github.com/apache/doris/pull/67813#discussion_r3979504211
##########
fe/fe-core/src/main/java/org/apache/doris/cloud/transaction/CloudGlobalTransactionMgr.java:
##########
@@ -671,6 +680,39 @@ private Map<Long, List<Long>>
updateVersion(CommitTxnResponse commitTxnResponse)
return tablePartitionMap;
}
+ private void refreshPartitionVersions(long dbId, long txnId, List<Long>
tableIds) throws UserException {
+ Database db = Env.getCurrentInternalCatalog().getDbNullable(dbId);
+ if (db == null) {
+ // The database may have been dropped after the original commit.
+ return;
+ }
+ List<CloudPartition> partitions = new ArrayList<>();
+ for (long tableId : Sets.newHashSet(tableIds)) {
Review Comment:
why try to `Sets.newHashSet(tableIds)`?
--
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]