Closed WenyXu closed 3 days ago
The changes introduce a RegionFailureDetectorController
to manage region failure detection across various parts of the system. Modifications include adding and initializing the controller, updating procedures to use the controller, and adjusting configurations and tests to incorporate the new failure detection mechanism.
Files | Change Summaries |
---|---|
.../standalone.rs , .../ddl.rs , .../ddl/create_table.rs |
Added NoopRegionFailureDetectorControl and updates to initialization, import adjustments, and inclusion in various procedures related to region failure detection. |
.../drop_database.rs , .../drop_table.rs |
Added ClusterId entity in several structs, modified procedure implementations to utilize ClusterId , and updated drop actions to include failure detector handling. |
.../executor.rs , .../cursor.rs , .../metadata.rs |
Added cluster_id to context structs and procedure handling, modified method signatures and initialization to include this new field. |
.../failure_handler.rs , .../failure_detector.rs , |
Added heartbeat_acceptor parameter to method signatures, updated methods to handle new failure detection logic, refactored detection methods with DetectingRegion . |
config/metasrv.example.toml , config/config.md |
Updated acceptable_heartbeat_pause value to 10000ms . |
tests-fuzz/.../fuzz_failover_mito_regions.rs |
Modified random generation parameters for rows , inserts , and parallelism in the fuzzing test to reduce the range and increase test efficiency. |
.../rollback_downgraded_region.rs , .../supervisor.rs |
Introduced RegionFailureDetectorControl for managing failure detectors, added event handling for registering/deregistering detectors, and enhanced related test cases. |
In meadows wide, regions bloom anew,
With failure detectors, robust and true.
Procedures align, clusters refined,
Heartbeats steady, no regions left behind.
Code sings in brevity, a harmonious cue,
As systems evolve, their strengths accrue.
[!TIP]
Early access features: disabled
We are currently testing the following features in early access: - **OpenAI `gpt-4o` model for code reviews and chat**: OpenAI claims that this model is better at understanding and generating code than the previous models. We seek your feedback over the next few weeks before making it generally available. Note: - You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file. - Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide feedback and report issues.
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?
@coderabbitai resolve
Attention: Patch coverage is 83.94649%
with 48 lines
in your changes missing coverage. Please review.
Project coverage is 84.59%. Comparing base (
a7aa556
) to head (cef5b65
). Report is 2 commits behind head on main.
@fengjiachun PTAL
@coderabbitai Hi
[!TIP] For best results, initiate chat on the files or code changes.
@fengjiachun Hi! How can I assist you today?
Another suggestion: can we add some tests to cover these cases?
Yes, tests will be introduced in following PRs
@killme2008 @MichaelScofield PTAL
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
4161
What's changed and what's your intention?
Checklist
Summary by CodeRabbit
New Features
Improvements
Configuration
acceptable_heartbeat_pause
value from"3000ms"
to"10000ms"
for better failure detection timing.Tests