Skip to content

Commit

Permalink
bugfix/fix console portal npe&add credis hetero type
Browse files Browse the repository at this point in the history
  • Loading branch information
ndi-trip committed Nov 9, 2023
1 parent 269a4fe commit 4f35139
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,12 @@ public com.ctrip.xpipe.cluster.ClusterType innerType() {
public com.ctrip.xpipe.cluster.ClusterType innerType() {
return com.ctrip.xpipe.cluster.ClusterType.CROSS_DC;
}
},
HETERO(6) {
@Override
public com.ctrip.xpipe.cluster.ClusterType innerType() {
return com.ctrip.xpipe.cluster.ClusterType.HETERO;
}
};

private Integer intVal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ public DcClusterModel findDcClusterModelByClusterAndDc(String clusterName, Strin

result.setShards(shardModelService.getAllShardModel(dcName, clusterName));
ClusterType azGroupType = azGroupClusterRepository.selectAzGroupTypeById(dcClusterTbl.getAzGroupClusterId());
result.setAzGroupClusterType(azGroupType.name());
if (azGroupType != null) {
result.setAzGroupClusterType(azGroupType.name());
}
if (azGroupType == ClusterType.SINGLE_DC) {
result.setSources(sourceModelService.getAllSourceModels(dcName, clusterName));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function ClusterType() {
useKeeper: true,
healthCheck: true,
supportMigration: true,
isCrossDc:true,
isCrossDc:false,
supportApplier:false,
useAzGroupType:true,
}
Expand Down

0 comments on commit 4f35139

Please sign in to comment.