Repository navigation
fix(rpc): allow node startup retry after listener failure - #1494
Conversation
Reset async admission only after draining its jobs and guard against stale concurrent stops. Roll back RPC listeners and the event-log subscription on startup failure so a retry can use the same node instance. Co-Authored-By: Codex <[email protected]> <sub>🤖 Co-authored by [Claudius the Magnificent](https://github.com/lklimek/claudius) AI Agent</sub>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: dashpay/tenderdash/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
|
Bots are done — your move: post |
|
/self-reviewed |
|
Policy satisfied — this can merge. |
Nodes embedded in an application can retry startup after an RPC listener fails to bind, without recreating the node instance.
User story
As an application embedding Tenderdash, I want to retry startup after freeing a conflicting RPC port.
Scenario
The first
Startfails because the RPC port is occupied. After freeing it, anotherStarton the same node should succeed. Previously, async admission rejected the retry as already started; after that was corrected, the existing event-log subscription also blocked the retry.Issue being fixed or feature implemented
Follow-up to merged #1478 and its startup retry review finding. This affects explicit retries on the same node instance; the normal CLI does not retry startup.
What was done?
How Has This Been Tested?
The node regression failed on the merged base with
async broadcasts already started. Final focused tests passed with the race detector and deadlock tag:gofmt,git diff --check, and focused golangci-lint v2.13.2 passed (zero issues). Full CI remains to run.Breaking Changes
None.
Checklist
For repository code-owners and collaborators only
🤖 Co-authored by Claudius the Magnificent AI Agent
PR Hygiene ·
fb778b0When every box is checked the
PR Hygienecheck passes and this can merge.