-
Notifications
You must be signed in to change notification settings - Fork 313
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
refactor: add RemoteCompaction
error
#4251
refactor: add RemoteCompaction
error
#4251
Conversation
WalkthroughThe update introduces a Changes
PoemIn code so vast, new errors bloom, Tip Early access features: enabledWe are currently testing the following features in early access:
Note:
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- src/mito2/src/error.rs (3 hunks)
- src/mito2/src/schedule/remote_job_scheduler.rs (1 hunks)
Additional comments not posted (4)
src/mito2/src/schedule/remote_job_scheduler.rs (1)
69-69
: Visibility oflocation
field.Making the
location
field public improves error handling and debugging by exposing location information associated with remote job scheduling errors. Ensure that this change does not inadvertently expose sensitive information.src/mito2/src/error.rs (3)
36-36
: New import:JobId
.The new
JobId
import is necessary for theRemoteCompaction
error variant. Ensure thatJobId
is correctly defined and used elsewhere in the codebase.
772-785
: New error variant:RemoteCompaction
.The new
RemoteCompaction
error variant is well-defined and provides detailed information about remote compaction failures, includingregion_id
,job_id
,reason
, andlocation
. This enhances error reporting and debugging capabilities.
906-906
: Handle new error variant instatus_code
.The new
RemoteCompaction
error variant is correctly mapped toStatusCode::Unexpected
in thestatus_code
method. This ensures consistent error handling.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4251 +/- ##
==========================================
- Coverage 84.96% 84.69% -0.27%
==========================================
Files 1052 1054 +2
Lines 186787 186950 +163
==========================================
- Hits 158705 158342 -363
- Misses 28082 28608 +526 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
4c52e29
to
7883ffe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/mito2/src/error.rs (3 hunks)
Files skipped from review as they are similar to previous changes (1)
- src/mito2/src/error.rs
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
The
RemoteCompaction
will use forCompactionJobResult
and sends the notification to Mito.Checklist
Summary by CodeRabbit
New Features
region_id
,job_id
,reason
, andlocation
of the error.Improvements
location
field public in the remote job scheduler errors.