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

Attila Doroszlai commented on HDDS-10570:
-----------------------------------------

{code:title=S3A debug}
2024-03-22 11:28:57 DEBUG S3AFileSystem:2987 - PUT 0 bytes to empty_file
2024-03-22 11:28:57 DEBUG S3AFileSystem:3060 - PUT start 0 bytes
2024-03-22 11:28:57 DEBUG request:1288 - Sending Request: PUT http://s3g:9878 
/fso-bucket/empty_file
2024-03-22 11:28:57 DEBUG AWS4Signer:33 - AWS4 Canonical Request: '"PUT
/fso-bucket/empty_file

amz-sdk-invocation-id:9c0644e3-b091-9a5f-0ea1-7efde6b95e83
amz-sdk-request:attempt=1;max=21
amz-sdk-retry:0/0/500
content-length:86
content-md5:1B2M2Y8AsgTpgAmY7PhCfg==
content-type:application/octet-stream
host:s3g:9878
referer:https://audit.example.org/hadoop/1/op_create/0a166365-6d10-4fbd-9080-96f18c5bbd89-00000009/?op=op_create&p1=empty_file&pr=hadoop&ps=9be67985-143b-4e7a-9b4c-8be964dce9fa&cm=FsShell&id=0a166365-6d10-4fbd-9080-96f18c5bbd89-00000009&t0=1&fs=0a166365-6d10-4fbd-9080-96f18c5bbd89&t1=45&ts=1711106937439
user-agent:Hadoop 3.3.6, aws-sdk-java/1.12.367 Linux/6.2.0-36-generic 
OpenJDK_64-Bit_Server_VM/25.212-b04 java/1.8.0_212 kotlin/1.4.10 
vendor/Oracle_Corporation cfg/retry-mode/legacy
x-amz-content-sha256:STREAMING-AWS4-HMAC-SHA256-PAYLOAD
x-amz-date:20240322T112857Z
x-amz-decoded-content-length:0
{code}

{code:title=S3 Gateway audit}
2024-03-22 11:28:57,569 | INFO  | S3GAudit | user=any | ip=192.168.112.10 | 
op=CREATE_DIRECTORY {bucket=[fso-bucket], path=[empty_file]} | ret=SUCCESS | 
perf={metaLatencyMs=14, opLatencyMs=14} |  
{code}

> dfs -touch creates directory instead of empty file in FSO bucket
> ----------------------------------------------------------------
>
>                 Key: HDDS-10570
>                 URL: https://issues.apache.org/jira/browse/HDDS-10570
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: Ozone Filesystem
>            Reporter: Attila Doroszlai
>            Priority: Major
>
> {code}
> $ ozone sh bucket create --layout FILE_SYSTEM_OPTIMIZED /s3v/fso-bucket
> $ hdfs dfs -touch s3a://fso-bucket/empty.s3a
> $ ozone sh key info /s3v/fso-bucket/empty.s3a
> {
> ...
>   "name" : "empty.s3a/",
>   "dataSize" : 0,
> ...
>   "ozoneKeyLocations" : [ ],
>   "file" : false
> }
> {code}
> The same works OK in OBJECT_STORE and LEGACY buckets.



--
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