liaoxin01 commented on code in PR #43451: URL: https://github.com/apache/doris/pull/43451#discussion_r1832625031
########## fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java: ########## @@ -630,6 +631,20 @@ public TListTableStatusResult listTableStatus(TGetTablesParams params) throws TE } long lastCheckTime = table.getLastCheckTime() <= 0 ? 0 : table.getLastCheckTime(); TTableStatus status = new TTableStatus(); + // For the follower node in cloud mode, + // when querying the information_schema table, + // the version needs to be updated. + // Otherwise, the version will always be the old value + // unless there is a query for the table in the follower node. + if (!Env.getCurrentEnv().isMaster() && Config.isCloudMode() + && table instanceof OlapTable) { + OlapTable olapTable = (OlapTable) table; + List<CloudPartition> partitions = olapTable.getAllPartitions().stream() + .filter(p -> p instanceof CloudPartition) + .map(cloudPartition -> (CloudPartition) cloudPartition) + .collect(Collectors.toList()); + CloudPartition.getSnapshotVisibleVersion(partitions); Review Comment: RPC requests should be placed outside of the lock. -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org