Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDS-11127. [hsync] Improve test coverage for XceiverClientRatis.java #7225

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chungen0126
Copy link
Contributor

What changes were proposed in this pull request?

According to SonarCloud the new code added to this file is not covered by tests:

https://sonarcloud.io/component_measures?id=hadoop-ozone&branch=HDDS-7593&metric=new_coverage&selected=hadoop-ozone%3Ahadoop-hdds%2Fclient%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fhadoop%2Fhdds%2Fscm%2FXceiverClientRatis.java

Please describe your PR in detail:

There are tests (TestCommitInRatis.java and TestWatchForCommit.java) in org.apache.hadoop.ozone.client.rpc testing the 2 way and 3 way commit in Ratis. I think they are in a wrong place, moving them to org.apache.hadoop.hdds.scm to cover lines in XceiverClientRatis.java.

What is the link to the Apache JIRA

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

How was this patch tested?

CI:
https://github.com/chungen0126/ozone/actions/runs/10970102371

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.

1 participant