xichen01 commented on code in PR #10362:
URL: https://github.com/apache/ozone/pull/10362#discussion_r3310215571
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueContainer.java:
##########
@@ -186,10 +175,10 @@ public void create(VolumeSet volumeSet,
VolumeChoosingPolicy
containerData.setCommittedSpace(true);
} catch (DiskOutOfSpaceException ex) {
throw new StorageContainerException("Container creation failed, " +
- "due to disk out of space", ex, DISK_OUT_OF_SPACE);
+ "due to disk out of space on StorageType: " + storageType, ex,
DISK_OUT_OF_SPACE);
Review Comment:
Added
##########
hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/common/impl/TestHddsDispatcher.java:
##########
@@ -428,6 +435,120 @@ public void testCreateContainerWithWriteChunk() throws
IOException {
}
}
+ @Test
+ public void testCreateContainerWithWriteChunkWithStorageType() throws
IOException {
Review Comment:
Add test for `PutSmallFile`.
The `PutBlock` will be support in the future MR
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]