HDDS-1730. Implement File CreateDirectory Request to use Cache and Do…#1026
HDDS-1730. Implement File CreateDirectory Request to use Cache and Do…#1026bharatviswa504 merged 6 commits intoapache:trunkfrom
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
cd4a789 to
0877e85
Compare
|
💔 -1 overall
This message was automatically generated. |
f1ab2ee to
2d646d0
Compare
2d646d0 to
0764482
Compare
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
| import org.apache.hadoop.ozone.om.OzoneManager; | ||
| import org.apache.hadoop.ozone.om.ratis.utils.OzoneManagerRatisUtils; | ||
| import org.apache.hadoop.ozone.om.response.OMClientResponse; | ||
| import org.apache.hadoop.ozone.om.response.file.OMDirectoryCreateResponse; |
|
|
||
| // Check if this is the root of the filesystem. | ||
| if (keyName.length() == 0) { | ||
| return new OMDirectoryCreateResponse(null, |
There was a problem hiding this comment.
A future improvement unrelated to your patch - replace null with Optional. Or at least add @nullable annotation on the parameter.
There was a problem hiding this comment.
Added @nullable. Will open a new jira to do the same for Other OMResponse classes.
There was a problem hiding this comment.
| acquiredLock = omMetadataManager.getLock().acquireLock(BUCKET_LOCK, | ||
| volumeName, bucketName); | ||
|
|
||
| // TODO: Not checking volume exist here, once we have full cache we can |
There was a problem hiding this comment.
Let's file a blocker Jira for this so it doesn't slip somehow.
There was a problem hiding this comment.
This check is to throw a specific error like volume not found.
I think this is right now not a blocker, it is similar to what we have done in Key requests.
https://issues.apache.org/jira/browse/HDDS-1737
arp7
left a comment
There was a problem hiding this comment.
+1 LGTM. A few minor comments unrelated to the patch, and looks like there is one checkstyle issue of unused imports.
Please verify UT and acceptance failures are unrelated, most likely the case.
|
Thank You @arp7 for the review. |
|
💔 -1 overall
This message was automatically generated. |
|
Test failures are not related to this patch. |
…ner startup sequence. (apache#1026) * Resolve startpoint to offset before registering with SystemConsumer. * Add unit tests. * Address review comments.
…ubleBuffer.