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-3549. TestKeyInputStream#testSeek fails intermittently. #899
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lokeshj1703 for working on this. Renaming the methods to clarify their difference is a good change. But I don't think the mismatch causes the test failure, both metrics should be 0 at that point.
...ne/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestKeyInputStream.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
XCeiverClientMetrics is shared instance among all grpc clients and the increment/decrement not being atomic might end up resulting in negative value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 Thanks @lokeshj1703 fix it.
I propose to commit this patch and fix the other (real?) problem in a separated Jira, if you agree (@bshashikant , @adoroszlai ) as this would fix intermittency in our tests immediately.
+1 to commit this. Do we have a separate follow up JIRA? |
Filed https://issues.apache.org/jira/browse/HDDS-3578 to fix the other issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, the patch looks good to me.
What changes were proposed in this pull request?
Assert.assertEquals(readChunkCount, metrics .getContainerOpsMetrics(ContainerProtos.Type.ReadChunk));
The PR now compares the correct metric i.e. getContainerOpCountMetrics.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-3549
How was this patch tested?
The patch fixes a unit test.