Skip to content
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

Make region lease duration granted by metasrv dynamic #4111

Open
MichaelScofield opened this issue Jun 6, 2024 · 0 comments
Open

Make region lease duration granted by metasrv dynamic #4111

MichaelScofield opened this issue Jun 6, 2024 · 0 comments
Assignees
Labels
C-enhancement Category Enhancements

Comments

@MichaelScofield
Copy link
Collaborator

What type of enhancement is this?

Tech debt reduction

What does the enhancement do?

Now the region lease duration is static:

let region_lease_handler = RegionLeaseHandler::new(
    distributed_time_constants::REGION_LEASE_SECS, <-- static
    table_metadata_manager.clone(),
    memory_region_keeper.clone(),
);

It's better to be calculated dynamically, by each datanode's heartbeat interval.

Implementation challenges

No response

@MichaelScofield MichaelScofield added the C-enhancement Category Enhancements label Jun 6, 2024
@WenyXu WenyXu self-assigned this Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category Enhancements
Projects
None yet
Development

No branches or pull requests

2 participants