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

refactor: update replica's dir_node status (part1) #1487

Merged
merged 6 commits into from
May 26, 2023

Conversation

acelyc111
Copy link
Member

@acelyc111 acelyc111 commented May 25, 2023

#1383

In prior implemention, every replica has a "dir_node status", if a dir_node has
some abnormal status (e.g. in space insufficient), we have to update all replicas'
referenced "dir_node status", it is implemented in replica_stub::update_disks_status.
This make the "dir_node status" updating path too long, and a bit of duplicate.

A new implemention is completed in #1473,
every replica has a reference of dir_node directly, so it would be easy to update replcia's
"dir_node status" by updating the referenced dir_node's status once.

Before the new implemention, this patch submit a minor refactor to remove
replica_stub::update_disks_status and related functions and variables. Also some unit
tests have been updated.

@github-actions github-actions bot added the cpp label May 25, 2023
@acelyc111 acelyc111 changed the title refactor: remove some functions refactor: simplify update_disk_stat of fs_manager May 25, 2023
@acelyc111 acelyc111 marked this pull request as ready for review May 25, 2023 12:44
@acelyc111 acelyc111 changed the title refactor: simplify update_disk_stat of fs_manager refactor: update replica's dir_node status (part1) May 25, 2023
src/common/fs_manager.cpp Outdated Show resolved Hide resolved
src/common/fs_manager.cpp Outdated Show resolved Hide resolved
src/common/fs_manager.cpp Outdated Show resolved Hide resolved
src/common/fs_manager.cpp Outdated Show resolved Hide resolved
@empiredan empiredan merged commit 5404c40 into apache:master May 26, 2023
@empiredan empiredan mentioned this pull request Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants