### _Why are the changes needed?_ Now `SparkConsoleProgressBar` is initialized after constructing `SQLOperationListener`. Sometimes the user's SQL syntax may fail. At this time, because there is no `SparkListenerSQLExecutionEnd` event, `SparkConsoleProgressBar` is not cleaned up, resulting in a memory leak. In this PR, make the following changes - Added cleanup method - Some objects use lazy to avoid constructing when SQL syntax is wrong close #2922 ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #2923 from cxzl25/KYUUBI-2922. Closes #2922 42dbdf2f [sychen] fix leak Authored-by: sychen <sychen@ctrip.com> Signed-off-by: Shaoyun Chen <csy@apache.org> |
||
|---|---|---|
| .. | ||
| kyuubi-download | ||
| kyuubi-flink-sql-engine | ||
| kyuubi-hive-sql-engine | ||
| kyuubi-jdbc-engine | ||
| kyuubi-spark-sql-engine | ||
| kyuubi-trino-engine | ||