Skip to content

Commit

Permalink
fix(dbm-services): 解除限制tendbCluster 集群中不同版本的限制 TencentBlueKing#7543
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq authored and iSecloud committed Oct 24, 2024
1 parent 5cc22a6 commit 322f3f4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ def __get_spider_version(self, cluster_id: int) -> str:
major_version_set = set()
for spider in proxy_list:
major_version, sub_version = major_version_parse(spider.version)
major_version_set.add(major_version)
# 只判断spider1.x 和 spider 3.x 这样的差异性
major_version_set.add(int(major_version / 1000000))
version.add(spider.version)
if len(major_version_set) > 1:
raise Exception(_("spider中存在多个大版本不一致的情况:{},请找DBA处理下").format(version))
Expand Down

0 comments on commit 322f3f4

Please sign in to comment.