Xushaohong commented on code in PR #5160:
URL: https://github.com/apache/ozone/pull/5160#discussion_r1286976319
##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java:
##########
@@ -126,6 +126,10 @@ private S3ErrorTable() {
public static final OS3Exception NO_OVERWRITE = new OS3Exception(
"Conflict", "Cannot overwrite file with directory", HTTP_CONFLICT);
+ public static final OS3Exception METADATA_TOO_LARGE = new OS3Exception(
+ "MetadataTooLarge", "Your metadata headers exceed the maximum allowed " +
+ "metadata size.", HTTP_BAD_REQUEST);
Review Comment:
The msg lacks the originally explicit declaration of MetaData 2KB size. The
users usually prefer more clear error msg.
--
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]