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-6614. EC: Fix Datanode block file INCONSISTENCY during heavy load. #3323
Conversation
...ner-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/helpers/ChunkUtils.java
Outdated
Show resolved
Hide resolved
|
Yes I've read this, you could read the descriptions in the JIRA and try the provided small program for some hints. |
This makes sense. Thanks for catching this. LGTM. |
...ner-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/helpers/ChunkUtils.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.
Minor nit
Thanks @guihecheng for reporting this. This issue looks very similar to https://issues.apache.org/jira/browse/HDDS-6356 So, to make sure this issue is fixed, how about @cchenax help to reproduce with his env and try this fix there? |
Oh, yes, may be this problem is similar to that one, but I'm not sure, I'll fix the failed tests and ping cchenax then. |
Hi @kerneltime @umamaheswararao , thanks for reviewing , test failures addressed and Exception refined. |
ok,I will test it. |
it may be not the same problem. |
What changes were proposed in this pull request?
EC: Fix Datanode block file INCONSISTENCY during heavy load.
Problem descriptions and analysis in the JIRA below.
In brief, we should get the file size by using the fileChannel instead of the file.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-6614
How was this patch tested?
Manual test with experiment programs, seen in the JIRA above.