pan3793 opened a new issue, #5606:
URL: https://github.com/apache/kyuubi/issues/5606

   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [X] I have searched in the 
[issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### What would you like to be improved?
   
   When viewing the Engine page in UI, the following error occurs on the server 
if no engines were created by such a user.
   
   ```
   2023-11-02 11:23:43.664 WARN KyuubiRestFrontendService-42 
org.apache.kyuubi.server.api.RestExceptionMapper: Error occurs on accessing 
REST API.
   javax.ws.rs.NotFoundException: No such engine for user: anonymous, engine 
type: SPARK_SQL, share level: USER, subdomain: null
        at 
org.apache.kyuubi.server.api.v1.AdminResource.$anonfun$listEngines$15(AdminResource.scala:364)
        at 
org.apache.kyuubi.ha.client.DiscoveryClientProvider$.withDiscoveryClient(DiscoveryClientProvider.scala:36)
        at 
org.apache.kyuubi.server.api.v1.AdminResource.listEngines(AdminResource.scala:351)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           // ... jersey and jetty stacks which not much related
   ```
   
   ### How should we improve?
   
   In such case, the Kyuubi server should return a empty list instead of error
   
   ### Are you willing to submit PR?
   
   - [ ] Yes. I would be willing to submit a PR with guidance from the Kyuubi 
community to improve.
   - [ ] No. I cannot submit a PR at this time.


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

Reply via email to