[X] I have searched in the issues and found no similar issues.
Describe the bug
In org.apache.kyuubi.events.handler.JsonLoggingEventHandler. When there are too many partitions, a large number of unclosed writers will be created, leading to memory leaks.
Affects Version(s)
master
Kyuubi Server Log Output
No response
Kyuubi Engine Log Output
No response
Kyuubi Server Configurations
No response
Kyuubi Engine Configurations
No response
Additional context
No response
Are you willing to submit PR?
[X] Yes. I would be willing to submit a PR with guidance from the Kyuubi community to fix.
Code of Conduct
Search before asking
Describe the bug
In org.apache.kyuubi.events.handler.JsonLoggingEventHandler. When there are too many partitions, a large number of unclosed writers will be created, leading to memory leaks.
Affects Version(s)
master
Kyuubi Server Log Output
No response
Kyuubi Engine Log Output
No response
Kyuubi Server Configurations
No response
Kyuubi Engine Configurations
No response
Additional context
No response
Are you willing to submit PR?