[ 
https://issues.apache.org/jira/browse/HDDS-7811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17767067#comment-17767067
 ] 

Ashish Kumar commented on HDDS-7811:
------------------------------------

I have reproduced this in TestOzoneAtRestEncryption as well.

Steps: Directly upload part without doing "create-multipart-upload". Also the 
key should be in the form <volume>/<bucket>/<prefix>/<keyname>.

The same way is done in robot test. But in robot test we want to do test for 
invalid upload ID, So we should first "create-multipart-upload" and then pass 
the invalid upload ID, so that it can return NoSuchUpload error.

> S3 gateway returns 500 instead of NoSuchUpload for FSO bucket 
> --------------------------------------------------------------
>
>                 Key: HDDS-7811
>                 URL: https://issues.apache.org/jira/browse/HDDS-7811
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: OM, S3
>    Affects Versions: 1.3.0
>            Reporter: Ethan Rose
>            Assignee: Ashish Kumar
>            Priority: Major
>
> When setting the default bucket layout to FSO, the {{Upload part with 
> Incorrect uploadID}} in {{s3/MultipartUpload.robot}} acceptance test fails. 
> This is caused by a {{DIRECTORY_NOT_FOUND OMException}} that is thrown in 
> {{OMKeyCreateRequest#preExecute}} and forwarded to s3 gateway instead of the 
> expected error. The stack trace of the exception is not captured by the 
> current code, but adding OM logging shows:
> {code:java}
> ozonesecure-ha-om1-1  | DIRECTORY_NOT_FOUND 
> org.apache.hadoop.ozone.om.exceptions.OMException: Failed to find parent 
> directory of ozone-test-6048979897/multipartKey
> ozonesecure-ha-om1-1  |         at 
> org.apache.hadoop.ozone.om.request.file.OMFileRequest.getParentID(OMFileRequest.java:1023)
> ozonesecure-ha-om1-1  |         at 
> org.apache.hadoop.ozone.om.request.file.OMFileRequest.getParentID(OMFileRequest.java:973)
> ozonesecure-ha-om1-1  |         at 
> org.apache.hadoop.ozone.om.request.file.OMFileRequest.getParentId(OMFileRequest.java:1055)
> ozonesecure-ha-om1-1  |         at 
> org.apache.hadoop.ozone.om.request.key.OMKeyCreateRequestWithFSO.getDBMultipartOpenKey(OMKeyCreateRequestWithFSO.java:268)
> ozonesecure-ha-om1-1  |         at 
> org.apache.hadoop.ozone.om.request.key.OMyRequest.getFileEncryptionInfoForMpuKey(OMKeyRequest.java:487)
> ozonesecure-ha-om1-1  |         at 
> org.apache.hadoop.ozone.om.request.key.OMKeyCreateRequest.preExecute(OMKeyCreateRequest.java:171)
> {code}
> I was unable to reproduce the exception with modifications to the 
> {{TestOzoneAtRestEncryption}} integration tests.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to