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

   ### 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.
   
   
   ### Describe the bug
   
   Describe the bug
   
   SessionsResource.getOperation builds the response with map + an if that has 
no else. For every operation on the server that does not belong to the 
requested session, the closure evaluates to () (scala.runtime.BoxedUnit), which 
is placed into the returned Seq. Jackson then fails to serialize the list
   
   
   ```
   com.fasterxml.jackson.databind.exc.InvalidDefinitionException:
   No serializer found for class scala.runtime.BoxedUnit and no properties 
discovered to create BeanSerializer
   (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS)
   (through reference chain: scala.collection.immutable.$colon$colon[1])
   and Jetty responds 400 Bad Request with the Jackson message as text/plain.
   ```
   
   As long as the server hosts any operation from another session (almost 
always true in shared/multi-user deployments), this endpoint is unusable. Only 
a server-wide zero-operation state returns [] successfully. Even if 
serialization succeeded, the response would contain null holes for non-matching 
operations, so the semantics are wrong regardless.
   
   ### Affects Version(s)
   
   1.12.0
   
   ### Kyuubi Server Log Output
   
   ```logtalk
   
   ```
   
   ### Kyuubi Engine Log Output
   
   ```logtalk
   
   ```
   
   ### Kyuubi Server Configurations
   
   ```yaml
   
   ```
   
   ### Kyuubi Engine Configurations
   
   ```yaml
   
   ```
   
   ### Additional context
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes. I would be willing to submit a PR with guidance from the Kyuubi 
community to fix.
   - [ ] 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