Skip to content

Conversation

@sodonnel
Copy link
Contributor

What changes were proposed in this pull request?

The method ReplicationManager.processContainersNow() only wakes up the thread, and returns before the containers have been processed.

This results in all RM tests having a sleep(100) after all calls to this method.

With a small refactor to RM, we can avoid this sleep. After this change all tests run about 100ms faster, and the code in the tests is slightly better.

What is the link to the Apache JIRA

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

How was this patch tested?

Existing tests

@guihecheng
Copy link
Contributor

This LGTM, also invite @ChenSammi for a review.

@ChenSammi
Copy link
Contributor

The patch LGTM, + 1.

Thanks @sodonnel for improving the code.

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.

3 participants