Skip to content

Commit d991ff2

Browse files
branch-4.0: [fix](catalog) Only sync storage vault when it exists #59113 (#59365)
Cherry-picked from #59113 Co-authored-by: walter <[email protected]>
1 parent 6b0f2fb commit d991ff2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudInstanceStatusChecker.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ private boolean isResponseValid(Cloud.GetInstanceResponse response) {
8787
}
8888

8989
private void syncStorageVault(Cloud.InstanceInfoPB instance) {
90+
if (instance.getStorageVaultNamesCount() == 0) {
91+
return;
92+
}
93+
9094
Map<String, String> vaultMap = new HashMap<>();
9195
int cnt = instance.getResourceIdsCount();
9296
for (int i = 0; i < cnt; i++) {

0 commit comments

Comments
 (0)