Skip to content

HDDS-8073. Replace Usages of LegacyReplicationManager.MoveResult with MoveManager.MoveResult#4339

Merged
sodonnel merged 2 commits intoapache:masterfrom
siddhantsangwan:HDDS-8073
Mar 6, 2023
Merged

HDDS-8073. Replace Usages of LegacyReplicationManager.MoveResult with MoveManager.MoveResult#4339
sodonnel merged 2 commits intoapache:masterfrom
siddhantsangwan:HDDS-8073

Conversation

@siddhantsangwan
Copy link
Contributor

What changes were proposed in this pull request?

This PR replaces usages of LegacyReplicationManager.MoveResult with corresponding MoveManager.MoveResult results. This will allow Container Balancer to use MoveManager in the future while maintaining compatibility with Legacy Replication Manager.

Legacy -> MoveManager
1. FAIL_NOT_RUNNING, FAIL_NOT_LEADER -> FAIL_LEADER_NOT_READY
2. UNEXPECTED_REMOVE_SOURCE_AT_INFLIGHT_REPLICATION, UNEXPECTED_REMOVE_TARGET_AT_INFLIGHT_DELETION -> FAIL_UNEXPECTED_ERROR
3. FAIL_CAN_NOT_RECORD_TO_DB -> FAIL_UNEXPECTED_ERROR

Added logs wherever we're failing with FAIL_UNEXPECTED_ERROR.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-8073

How was this patch tested?

No new tests required.

@siddhantsangwan siddhantsangwan requested a review from sodonnel March 3, 2023 11:28
Copy link
Contributor

@sodonnel sodonnel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. One small thing - can we remove LegacyReplicationManager.MoveResult to ensure nothing is referencing it / using it now?

@sodonnel sodonnel merged commit 888c6dc into apache:master Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants