gavinchou commented on code in PR #61585:
URL: https://github.com/apache/doris/pull/61585#discussion_r3099365638
##########
fe/fe-core/src/main/java/org/apache/doris/cloud/alter/CloudSchemaChangeHandler.java:
##########
@@ -540,6 +549,60 @@ public void updateCloudPartitionMeta(Database db,
if (response.getStatus().getCode() != Cloud.MetaServiceCode.OK) {
throw new UserException(response.getStatus().getMsg());
}
+
+
notifyBackendsToSyncTabletMeta(updateTabletReq.getTabletMetaInfosList().stream()
+ .map(Cloud.TabletMetaInfoPB::getTabletId)
+ .collect(Collectors.toList()));
+ }
+ }
+
+ void notifyBackendsToSyncTabletMeta(List<Long> tabletIds) {
+ if (tabletIds.isEmpty()) {
+ return;
+ }
+ if
(DebugPointUtil.isEnable("CloudSchemaChangeHandler.notifyBackendsToSyncTabletMeta.skip"))
{
+ LOG.info("skip sync tablet meta rpc dispatch by debug point,
tabletIds={}", tabletIds);
+ return;
+ }
+ List<Backend> backends;
+ try {
+ backends =
Env.getCurrentSystemInfo().getAllBackendsByAllCluster().values().asList();
+ } catch (UserException e) {
+ LOG.warn("failed to get alive backends for sync tablet meta,
tabletIds={}", tabletIds, e);
+ return;
+ }
+
+ InternalService.PSyncTabletMetaRequest request =
InternalService.PSyncTabletMetaRequest.newBuilder()
Review Comment:
log the request
table and tablet list
and time taken
--
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]