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

gfmd promotion should call inode_remove_orphan() and inode_check_and_repair() #1106

Open
n-soda opened this issue Sep 14, 2020 · 0 comments
Open
Assignees
Labels
bug Something isn't working
Milestone

Comments

@n-soda
Copy link
Member

n-soda commented Sep 14, 2020

inode_remove_orphan() and inode_check_and_repair() are called only at startup of master gfmd.

Therefore, if the gfmd is running non-stop
(in such operation, a master gfmd is only created by promotion from slave to master, and never created as a master from the startup time),
these functions are never called, and the memory of gfmd and the storage of the backend database are wasted as a result.

To fix this problem, these functions should be called when slave gfmd is promoted to master, and if it's not in read-only mode.

@n-soda n-soda added the bug Something isn't working label Sep 14, 2020
@n-soda n-soda self-assigned this Sep 14, 2020
@n-soda n-soda added this to the gfarm-2.7.20 milestone Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant