fix(master): selete one address tobe delete.#1000577106
fix(master): count the required mp replica. #1000577106
Restore the count define back to original.
fix(master): check commit in the raft status.#1000580439
Signed-off-by: Wu Huocheng <wuhuocheng@oppo.com>
The createStoreModeChangePlan is replaced with batchAddLearner.
So delete the unused code that is createStoreModeChangePlan.
Signed-off-by: Wu Huocheng <wuhuocheng@oppo.com>
- Add logging for peer removal actions in raft state machine
- Update addMetaReplica and addMetaReplicaLearner methods for logging
- Improve logging in partition FSM operations for member changes
- Enhance logging for learner mode recovery checks and actions
- Modify cluster balance logic to include additional parameters for learners
This commit improves the observability of raft operations and learner recovery processes.
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
- Add learnerRecoverTimeoutSeconds parameter for cluster settings
- Update command line interface to accept learner recovery timeout
- Enhance API to parse and handle learnerRecoverTimeoutSeconds
- Modify cluster view to display learnerRecoverTimeoutSeconds status
- Implement logic to set learnerRecoverTimeoutSeconds in cluster
This commit enhances cluster management by allowing configuration of
the learner mode recovery timeout, improving the system's resilience
during decommissioning processes.
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
- Introduce enableMpDecommissionByLearner flag for cluster settings
- Update command line interface to accept new parameter
- Enhance API to parse and handle enableMpDecommissionByLearner
- Modify cluster view to display enableMpDecommissionByLearner status
- Implement logic to set enableMpDecommissionByLearner in cluster
This commit enhances cluster management capabilities by allowing
configuration of the mp decommissioning behavior.
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
- Add constants for learner operations
- Implement commands to add and promote learners in meta partitions
- Update API routes for learner management
- Enhance logging for learner operations
- Modify data structures to include learner information
- Ensure proper error handling for learner operations
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
- Implement Closed method in Partition interface
- Add Closed method to raft server for status checking
- Enhance onStop method to use goroutines for partition stopping
- Update ApplySnapshot to handle closed partitions gracefully
- Add mock implementations for Closed method in tests
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
- Modify LookupPath to accept a boolean parameter
- Update InodeGet_ll to accept a boolean parameter
- Adjust ReadDirLimit_ll to include a boolean parameter
- Enhance MarkDecommissionStatus to include additional string parameter
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
- Modify function signature to include ignoreDiscard parameter
- Update logic to skip discarded data partitions when requested
- Ensure compatibility with existing data node retrieval logic
Signed-off-by: Victor1319 <zengxuewei@oppo.com>