-
Notifications
You must be signed in to change notification settings - Fork 39
0.2-dev Rework retry #675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.2-dev Rework retry #675
Conversation
WalkthroughThe pull request refines the error handling and control flow within the synchronization worker. Specifically, it removes the Changes
Sequence Diagram(s)sequenceDiagram
participant Worker as SyncWorker
participant Stream as Stream Listener
Worker->>Stream: Call listenToStream()
alt Context canceled
Stream-->>Worker: Return permanent error (stop processing)
else EOF error encountered
Stream-->>Worker: Return error & reset backoff (1s delay)
else Compatibility error detected
Stream-->>Worker: Return error (retry after 1h)
else Other error occurred
Stream-->>Worker: Return error (continue retrying)
end
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (7)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Refactor Node Registration Retry LogicModified error handling and retry mechanism in sync worker. Replaced infinite loop retry with 📍Where to StartThe Macroscope summarized eb8e5e1. |
Retry was working OK, but it some cases it would get too fast, ignoring the exponential backoff. This PR explicitly controls the backoff strategy. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Enhanced the synchronization process with streamlined error management and reconnection logic. - **Bug Fixes** - Improved handling for interruptions and compatibility issues to ensure smoother, more reliable recovery during connectivity disruptions. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Retry was working OK, but it some cases it would get too fast, ignoring the exponential backoff.
This PR explicitly controls the backoff strategy.
Summary by CodeRabbit