fix(cdc): deploy-mining.sh 添加预种CDC connector管理
更新 CDC_POSTGRES_CONNECTORS 数组和所有 case 映射(resnapshot、 full-reset topic清理、Step9重注册),确保2.0部署脚本能正确 管理预种CDC connector的生命周期。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f270b7cc27
commit
63a169abb0
|
|
@ -148,6 +148,8 @@ CDC_POSTGRES_CONNECTORS=(
|
||||||
"identity-postgres-connector"
|
"identity-postgres-connector"
|
||||||
"referral-postgres-connector"
|
"referral-postgres-connector"
|
||||||
"planting-postgres-connector"
|
"planting-postgres-connector"
|
||||||
|
# [2026-02-27] 新增:3171预种计划CDC(同rwa_planting库,独立slot/publication/topic)
|
||||||
|
"pre-planting-postgres-connector"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Colors
|
# Colors
|
||||||
|
|
@ -990,6 +992,9 @@ cdc_resnapshot() {
|
||||||
"planting-postgres-connector")
|
"planting-postgres-connector")
|
||||||
config_file="$scripts_dir/planting-connector.json"
|
config_file="$scripts_dir/planting-connector.json"
|
||||||
;;
|
;;
|
||||||
|
"pre-planting-postgres-connector")
|
||||||
|
config_file="$scripts_dir/pre-planting-connector.json"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -n "$config_file" ] && [ -f "$config_file" ]; then
|
if [ -n "$config_file" ] && [ -f "$config_file" ]; then
|
||||||
|
|
@ -1463,6 +1468,7 @@ full_reset() {
|
||||||
"identity-postgres-connector") topic_prefix="cdc.identity" ;;
|
"identity-postgres-connector") topic_prefix="cdc.identity" ;;
|
||||||
"referral-postgres-connector") topic_prefix="cdc.referral" ;;
|
"referral-postgres-connector") topic_prefix="cdc.referral" ;;
|
||||||
"planting-postgres-connector") topic_prefix="cdc.planting" ;;
|
"planting-postgres-connector") topic_prefix="cdc.planting" ;;
|
||||||
|
"pre-planting-postgres-connector") topic_prefix="cdc.pre-planting" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -n "$topic_prefix" ]; then
|
if [ -n "$topic_prefix" ]; then
|
||||||
|
|
@ -1598,6 +1604,7 @@ full_reset() {
|
||||||
"identity-postgres-connector") config_file="$scripts_dir/identity-connector.json" ;;
|
"identity-postgres-connector") config_file="$scripts_dir/identity-connector.json" ;;
|
||||||
"referral-postgres-connector") config_file="$scripts_dir/referral-connector.json" ;;
|
"referral-postgres-connector") config_file="$scripts_dir/referral-connector.json" ;;
|
||||||
"planting-postgres-connector") config_file="$scripts_dir/planting-connector.json" ;;
|
"planting-postgres-connector") config_file="$scripts_dir/planting-connector.json" ;;
|
||||||
|
"pre-planting-postgres-connector") config_file="$scripts_dir/pre-planting-connector.json" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -n "$config_file" ] && [ -f "$config_file" ]; then
|
if [ -n "$config_file" ] && [ -f "$config_file" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue