mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-28 07:36:38 +08:00
1db5452be9
* fix: tolerate service not found during forward deletion - Refactor deleteForwardServicesOnNode to handle not-found errors gracefully - Extract deleteForwardServiceCandidates helper for reuse - Add tests for not-found tolerance scenarios - Ensures compatibility with legacy node versions Entire-Checkpoint: a3bacf836c57 * fix: add forward port occupancy validation and runtime residual cleanup - Add forward port occupancy validation on create/update paths - Extend self-occupy recovery to clean residual candidate service names - Add regression tests for address-in-use recovery with legacy runtime residue Fixes port conflict issues when upgrading from 2.1.6 to later versions Entire-Checkpoint: fb0a2aee4cb5
14 lines
561 B
Markdown
14 lines
561 B
Markdown
# 014 Forward Port Occupancy Validation
|
|
|
|
## Checklist
|
|
|
|
- [x] Confirm current forward create/update only validates node port range and misses DB-backed occupancy checks for local nodes.
|
|
- [x] Add shared forward port occupancy validation for create/update paths before runtime dispatch.
|
|
- [x] Add focused tests covering create/update validation when another forward already uses the same node+port.
|
|
- [x] Run focused backend handler tests and record the result.
|
|
|
|
## Test Record
|
|
|
|
- Command: `cd go-backend && go test ./internal/http/handler/...`
|
|
- Result: passed.
|