-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
HDFS-15025. Applying NVDIMM storage media to HDFS #2189
Conversation
a1caf08
to
b8286dc
Compare
@liuml07 Hi, would you please help to review it then we will modify this ASAP, thanks very much:) |
b8286dc
to
bb02bd8
Compare
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.
The overall change looks good to me, thanks! I will finish the review of testing in 1/2 days and provide more input.
I also will check which isTransient()
will need to be replaced with isRAM()
. It seems case by case for all usages. One simple question is for this NVDIMM storage type, we save the checksum file right?
...dfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockStoragePolicySuite.java
Outdated
Show resolved
Hide resolved
hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/ArchivalStorage.md
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
9e1f06d
to
84c3078
Compare
This comment has been minimized.
This comment has been minimized.
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.
At first glance I have couple of comments/queries
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/StorageType.java
Show resolved
Hide resolved
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/StorageType.java
Show resolved
Hide resolved
.../hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/FsVolumeSpi.java
Show resolved
Hide resolved
hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/ArchivalStorage.md
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@liuml07 and @brahmareddybattula please help to review the latest code again? thanks very much. |
@liuml07 and @brahmareddybattula So if all of the codes are ok, would you please to approve? Thanks. |
Will check again later this week. Ideally we can get a clean QA. Could you check the test failures and make sure they are not related? Thanks, |
No this is not a blocker @huangtianhua I will review (again) and commit hopefully this week if there is no other comments. Thanks, |
@liuml07 That sounds good, thank you very much:) |
@brahmareddybattula Hi brahma, would you review it again, thanks. |
@liuml07 and @brahmareddybattula Sorry to disturb you again, I wonder if there is any update about this patch? |
Sorry, I have been busy in other stuff. The recent review I have no other comments except a few trivial ones. I'll post that and commit this week. |
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
Left some minor comments.
Will commit directly after comments are fixed and new QA is clean or failing tests are checked.
...-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java
Outdated
Show resolved
Hide resolved
...dfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/net/TestDFSNetworkTopology.java
Show resolved
Hide resolved
...dfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/net/TestDFSNetworkTopology.java
Outdated
Show resolved
Hide resolved
...dfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/net/TestDFSNetworkTopology.java
Outdated
Show resolved
Hide resolved
...dfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/net/TestDFSNetworkTopology.java
Outdated
Show resolved
Hide resolved
...p-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestBlockStatsMXBean.java
Show resolved
Hide resolved
...s-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataDirs.java
Outdated
Show resolved
Hide resolved
...fs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestFsVolumeList.java
Outdated
Show resolved
Hide resolved
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/web/TestWebHDFS.java
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@liuml07 Sorry, we didn't catch you, what other changes we have to do? |
No more comments on the latest commit. Let's wait for the QA and run failing tests locally. I'll commit shortly. |
💔 -1 overall
This message was automatically generated. |
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
cc
failure is not related inhadoop-mapreduce-client
module for both Java 8 and Java 11checkstyle
error is related. Please fix that.- unit tests are not related and should be addressed separately
The non-volatile memory NVDIMM is faster than SSD, it can be used simultaneously with RAM, DISK and SSD. Storing the data of HDFS on NVDIMM directly will get better response rate and reliability. Co-authored-by: YaYun-Wang <yywangyayun@163.com>
put NVDIMM to the end of all storage types
add a blank line before every new rack
add one space after 'disk'
add NVDIMM test for setQuotaByStorageType method
update assertEquals() with two parameters
82464cb
to
0a87e83
Compare
@liuml07 , thanks, and we have updated the code, seems there is a checkstyle about the storage enum name of 'nvdimm' should keep as it is to consistent with other storage types, what do you think? |
Yeah; for this checkstyle in test we can keep it as-is for the sake of code consistency. Thanks. |
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
@huangtianhua and @YaYun-Wang thanks for contribution. @liuml07 thanks for review. |
* HDFS-15025. Applying NVDIMM storage media to HDFS Co-authored-by: YaYun-Wang <yywangyayun@163.com> Co-authored-by: YaYun-Wang <34060507+YaYun-Wang@users.noreply.github.com>
The non-volatile memory NVDIMM is faster than SSD,
it can be used simultaneously with RAM, DISK and SSD.
Storing the data of HDFS on NVDIMM directly will get
better response rate and reliability.