fix: Schema Registry cold zone 註冊改為冪等 #1
Reference in New Issue
Block a user
Delete Branch "fix/schema-registry-cold-idempotency"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
hot / warm zone 的
register()以 key 寫入陣列,天然冪等;cold zone 卻是 append-only,同一meta_key重複註冊會不斷累積重複項。主外掛與 AddOn 刻意雙邊註冊同一批欄位(belt-and-suspenders 防禦性冗餘),這個不對稱使 cold 欄位清單被重複灌入。
修法:註冊前先檢查
in_array(),已存在則跳過。與 hot / warm 的語義一致。驗證:核心 PHPUnit 587 tests / 1156 assertions 全通過。
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.