Skip to content

Conversation

@sodonnel
Copy link
Contributor

What changes were proposed in this pull request?

If a container is missing, then the new Replication Manager currently counts 1 in the report for under replicated and 1 for missing, meaning the container is double counted.

It makes more sense if we only count under-replicated OR missing. Technically a missing container is also under-replicated, but it makes the report confusing when the container is in two states.

What is the link to the Apache JIRA

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

How was this patch tested?

Modified some existing tests.

@adoroszlai
Copy link
Contributor

@sodonnel some test failure in re-run looks related:

TestReplicationManager.testUnderReplicatedAndUnrecoverable:433 expected:<1> but was:<0>
TestReplicationManager.testUnrecoverableClosedContainerWithUnhealthyReplicas:495 expected:<1> but was:<0>

https://github.com/apache/ozone/actions/runs/4262416097/jobs/7419698367#step:6:1474

@sodonnel
Copy link
Contributor Author

@sodonnel some test failure in re-run looks related:

TestReplicationManager.testUnderReplicatedAndUnrecoverable:433 expected:<1> but was:<0>
TestReplicationManager.testUnrecoverableClosedContainerWithUnhealthyReplicas:495 expected:<1> but was:<0>

https://github.com/apache/ozone/actions/runs/4262416097/jobs/7419698367#step:6:1474

Yea I missed those ones. Easy to fix so I have pushed a new commit now.

@adoroszlai adoroszlai merged commit 0a66958 into apache:master Feb 24, 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