Skip to content

HDDS-8034. Check container replication health before scheduling move in MoveManager#4321

Merged
sodonnel merged 2 commits intoapache:masterfrom
siddhantsangwan:HDDS-8034
Feb 27, 2023
Merged

HDDS-8034. Check container replication health before scheduling move in MoveManager#4321
sodonnel merged 2 commits intoapache:masterfrom
siddhantsangwan:HDDS-8034

Conversation

@siddhantsangwan
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

MoveManager#move already checks if a container has any in-flight (pending) Adds or Deletes before scheduling a move. However, there is some time between the replication thread checking the health of a container and queuing it and the UnhealthyReplicationProcessor thread picking containers from the queue and scheduling Adds and Deletes. To be safe, we should also check the container's health in MoveManager before scheduling move.

What is the link to the Apache JIRA

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

How was this patch tested?

Added UT.

@sodonnel sodonnel merged commit c69a015 into apache:master Feb 27, 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