This is an automated email from the ASF dual-hosted git repository.
ayushsaxena pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 588ff1e HDDS-2689. OMException NOT_A_FILE missing space in the
exception message. (#327)
588ff1e is described below
commit 588ff1ed0f83b471622e197bcf1e1e7592d7ec71
Author: avijayanhwx <[email protected]>
AuthorDate: Sun Dec 8 01:42:11 2019 -0800
HDDS-2689. OMException NOT_A_FILE missing space in the exception message.
(#327)
---
.../apache/hadoop/ozone/om/request/file/OMFileCreateRequest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMFileCreateRequest.java
b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMFileCreateRequest.java
index dae18c5..6ee9d26 100644
---
a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMFileCreateRequest.java
+++
b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMFileCreateRequest.java
@@ -208,7 +208,7 @@ public class OMFileCreateRequest extends OMKeyRequest {
throw new OMException("Can not write to directory: " + keyName,
OMException.ResultCodes.NOT_A_FILE);
} else if (omDirectoryResult == FILE_EXISTS_IN_GIVENPATH) {
- throw new OMException("Can not create file: " + keyName + "as there " +
+ throw new OMException("Can not create file: " + keyName + " as there "
+
"is already file in the given path",
OMException.ResultCodes.NOT_A_FILE);
}
@@ -243,8 +243,8 @@ public class OMFileCreateRequest extends OMKeyRequest {
boolean canBeCreated = checkKeysUnderPath(omMetadataManager,
volumeName, bucketName, keyName);
if (!canBeCreated) {
- throw new OMException("Can not create file: " + keyName + "as one"
+
- " of parent directory is not created",
+ throw new OMException("Can not create file: " + keyName +
+ " as one of parent directory is not created",
OMException.ResultCodes.NOT_A_FILE);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]