jerryshao opened a new issue, #11132:
URL: https://github.com/apache/gravitino/issues/11132

   ## Describe the subtask
   
   The Iceberg REST spec mandates HTTP 409 Conflict for `dropNamespace` when 
the namespace is non-empty. The current mapping in 
`IcebergExceptionMapper.java` returns 400, and the test at 
`TestIcebergExceptionMapper.java:51` asserts the wrong status code.
   
   **Files:**
   - 
`iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/IcebergExceptionMapper.java`
   - 
`iceberg/iceberg-rest-server/src/test/java/org/apache/gravitino/iceberg/service/TestIcebergExceptionMapper.java:51`
   - 
`iceberg/iceberg-rest-server/src/test/java/org/apache/gravitino/iceberg/integration/test/IcebergRESTServiceIT.java:224`
   
   **Fix:** Update the mapping to return 409 for `NamespaceNotEmptyException` 
and correct the test assertion from 400 to 409.
   
   ## Parent issue
   
   https://github.com/apache/gravitino/issues/11131


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

Reply via email to