-
Notifications
You must be signed in to change notification settings - Fork 648
chore: update for error messages #3549
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
Conversation
WalkthroughIntroduces internal error message constants across endpoint and etcd transport modules and replaces generic errors/logs with contextualized messages. Adds standardized error wrapping for etcd connection, lease, and key operations. Cancels the endpoint’s cancellation token on etcd registration failure. No public APIs or control flow are changed. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
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 |
- Implement consistent error message pattern: "Unable to {action}. Check etcd server status" - Add specific context for ETCD connection failures with server URLs - Separate concerns: ETCD modules mention etcd, component modules use generic "discovery service" - Use error message constants for maintainability - Include component/endpoint names in service registration failures - Convert internal terms like "lease" to user-friendly "connect to etcd" - Fix Rust compilation issues with proper cloning and format! macro usage Error message improvements: * ETCD connection: "Unable to connect to etcd server at {urls}. Check etcd server status" * ETCD lease: "Unable to create lease. Check etcd server status at {urls}" * Component registration: "Unable to register service for discovery. Check discovery service status" * Lease maintenance: "Unable to maintain lease - expired or revoked. Check etcd server status"
…sistency - Remove ETCD_KEY_CREATE_ERROR, ETCD_KEY_VALIDATE_ERROR, ETCD_KEY_OPERATION_ERROR constants - Remove COMPONENT_DISCOVERY_REGISTRATION_ERROR constant - Replace all constant references with inline strings to maintain consistency - Ensures all error messages use the same approach throughout the codebase
9a9361e
to
a19306f
Compare
Overview:
Changes to make error messages for etcd connection issues more consistent (feedback from UX work)
Details:
Consistent messages with additional information
Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
https://linear.app/nvidia/issue/DYN-1109/improve-error-messaging-etcd-registration-failures
Summary by CodeRabbit
Refactor
Bug Fixes
Chores