kyuubi/externals
sychen aba785f34c
[KYUUBI #2922] Clean up SparkConsoleProgressBar when SQL execution fails
### _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>
2022-06-22 14:39:01 +08:00
..
kyuubi-download [KYUUBI #2024][FOLLOWUP] Hive Backend Engine - ProcBuilder for HiveEngine 2022-04-12 18:10:18 +08:00
kyuubi-flink-sql-engine [KYUUBI #2247] Change log4j2 properties to xml 2022-06-10 18:57:25 +08:00
kyuubi-hive-sql-engine [KYUUBI #2827] [BUILD][TEST] Decouple integration tests from kyuubi-server 2022-06-18 00:01:34 +08:00
kyuubi-jdbc-engine [KYUUBI #2745] [Subtask] DorisSQLEngine - GetTables Operation 2022-06-20 14:52:41 +08:00
kyuubi-spark-sql-engine [KYUUBI #2922] Clean up SparkConsoleProgressBar when SQL execution fails 2022-06-22 14:39:01 +08:00
kyuubi-trino-engine [KYUUBI #2247] Change log4j2 properties to xml 2022-06-10 18:57:25 +08:00