fix: report first TCP connection attempt as status, not error - #3024
fix: report first TCP connection attempt as status, not error#3024Peter-Petrik wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe TCP reconnect handler now reports the initial connection attempt as provider status. It reports subsequent retry attempts as provider errors. ChangesTCP reconnect status reporting
Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~5 minutes Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to Initial TCP connection attempts are now reported as status rather than errors, while retries retain error reporting. No current merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Fixes #3023.
The TCP client provider's
reconnecthandler routes every scheduled attempt throughsetProviderError, including attempt 0, the initial connect. A data connection that connects cleanly on the first try therefore logs "Reconnect retry 0 delay 100" as a provider error at every server start, before theconnecthandler overwrites the status.This change reports attempt 0 via
setProviderStatusand leaves retries (n > 0),disconnectanderrorunchanged.Summary
Updates the TCP client reconnect handler to report the initial connection attempt (
n === 0) withsetProviderStatus.Retry attempts continue to use
setProviderError. This prevents successful initial connections from creating misleading provider error entries.