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

   ### What would you like to be improved?
   
   Currently, if we fail to operate an operation, there is no error log in the 
server side(gravitno-server.log).
   
   
   ```
   curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \
   -H "Content-Type: application/json" -d '{
       "name": "test"
   }' http://localhost:8090/api/metalakes
   
   
   curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \
   -H "Content-Type: application/json" -d '{
     "name": "test_catalog3",
     "type": "FILESET",
     "comment": "This is a mino fileset catalog",
     "properties": {
     }
   }' http://localhost:8090/api/metalakes/test/catalogs
   
   curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \
   -H "Content-Type: application/json" -d '{
     "name": "schema",
     "comment": "This is a S3 schema",
     "properties": {
     }
   }' http://localhost:8090/api/metalakes/test/catalogs/test_catalog3/schemas
   
   
   ## Wrong storage location, no scheme name 's'
   curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \
   -H "Content-Type: application/json" -d '{
     "name": "fileset02",
     "comment": "This is an example fileset",
     "type": "MANAGED",
     "storageLocation": "s://bucket1/test_catalog3/test_catalog02"
   }' 
http://localhost:8090/api/metalakes/test/catalogs/test_catalog3/schemas/schema/filesets
   
   ```
   
   The last curl should run into errors; however, there is no exception stacks 
in the server side, though we can get some inforamtion from the response from 
client side, but the message is not clear enough, we need information from the 
server side.
   
   ### How should we improve?
   
   Add log for exception in the server side, in terms of the example above, we 
need to add a log in 
   
https://github.com/apache/gravitino/blob/719e8d42841d2fc98fbfc58c676d5abb5e41fee5/server/src/main/java/org/apache/gravitino/server/web/rest/FilesetOperations.java#L304-L306
   
   Please fix all these problems at once, I believe there are many similar 
issues.


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