xichen01 opened a new pull request, #5153: URL: https://github.com/apache/ozone/pull/5153
## What changes were proposed in this pull request? Make S3G MPU invalid part Exception Reporting More detailed, For MPU, the Part number must be an integer between 1 and 10000, refer to: https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html Before ```bash [root@VM-8-3-centos ~]$ aws s3api upload-part --bucket pony-bucket1 --key my-large-file --part-number 0 --body /root/1M.img --upload-id adf5534e-a2c2-430c-b07d-e659f63adbdc-110831976767881217 --endpoint-url http://localhost:9878 An error occurred (500) when calling the UploadPart operation (reached max retries: 2): Internal Server Error [root@VM-8-3-centos ~]$ aws s3api upload-part --bucket pony-bucket1 --key my-large-file --part-number 10001 --body /root/1M.img --upload-id adf5534e-a2c2-430c-b07d-e659f63adbdc-110831976767881217 --endpoint-url http://localhost:9878 An error occurred (500) when calling the UploadPart operation (reached max retries: 2): Internal Server Error ``` After this PR ```bash [root@VM-8-3-centos ~]$ aws s3api upload-part --bucket pony-bucket1 --key my-large-file --part-number 0 --body /root/1M.img --upload-id adf5534e-a2c2-430c-b07d-e659f63adbdc-110831976767881217 --endpoint-url http://localhost:9878 An error occurred (InvalidArgument) when calling the UploadPart operation: Part number must be an integer between 1 and 10000, inclusive [root@VM-8-3-centos ~]$ aws s3api upload-part --bucket pony-bucket1 --key my-large-file --part-number 10001 --body /root/1M.img --upload-id adf5534e-a2c2-430c-b07d-e659f63adbdc-110831976767881217 --endpoint-url http://localhost:9878 An error occurred (InvalidArgument) when calling the UploadPart operation: Part number must be an integer between 1 and 10000, inclusive ``` Refer to AWS ```bash [root@VM-8-3-centos ~]$ aws s3api upload-part --bucket pony-bucket1 --key my-large-file --part-number 10001 --body /root/1M.img --upload-id IxGus3j8XchCM0F2nSk3xaS.w8C6xZl6.hMYslFEiYD3xdIfqBPu0DcVWYRgx1wzIvvexUvr8dpoxQOxPv3SxaoyG2OOYkcendOyoZbMuhnbaEP84.ff3cf4Fq4R6AKPYrK9A7kRgED2k48P40Y7NA-- An error occurred (InvalidArgument) when calling the UploadPart operation: Part number must be an integer between 1 and 10000, inclusive [root@VM-8-3-centos ~]$ aws s3api upload-part --bucket pony-bucket1 --key my-large-file --part-number 0 --body /root/1M.img --upload-id IxGus3j8XchCM0F2nSk3xaS.w8C6xZl6.hMYslFEiYD3xdIfqBPu0DcVWYRgx1wzIvvexUvr8dpoxQOxPv3SxaoyG2OOYkcendOyoZbMuhnbaEP84.ff3cf4Fq4R6AKPYrK9A7kRgED2k48P40Y7NA-- An error occurred (InvalidArgument) when calling the UploadPart operation: Part number must be an integer between 1 and 10000, inclusive [root@VM-8-3-centos ~]$ ``` ## What is the link to the Apache JIRA ## How was this patch tested? -- 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]
