kyuubi/externals
Fei Wang 8c3f471ae3 [KYUUBI #5952] Disconnect connections without running operations after engine maxlife time graceful period
# 🔍 Description
## Issue References 🔗

We found that, some kyuubi connections(maybe managed by jdbc connection pool likes hikari) always keep alive, and the engine can not be terminated after exceeds the max life time.

So, In this pr, I introduce a graceful period after spark engine max life time, after the graceful period, the connections without running operations will be disconnected forcibly.

Close #5952

## Describe Your Solution 🔧

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

## Types of changes 🔖

- [ ] Bugfix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Test Plan 🧪

#### Behavior Without This Pull Request ⚰️

#### Behavior With This Pull Request 🎉

#### Related Unit Tests

---

# Checklist 📝

- [ ] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes #6040 from turboFei/close_on_nooperation_rebase.

Closes #5952

0b05ddc0c [Fei Wang] comments
4329a85cf [Fei Wang] async stop
b39c9b3a0 [Fei Wang] use short sleep
7c123f612 [Fei Wang] save
45ad3489d [Fei Wang]  check no running operation

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2024-02-06 18:16:46 -08:00
..
kyuubi-chat-engine [KYUUBI #5870] Directly mapping engine's data type to Java type for TRowSet generation 2023-12-21 12:16:49 +08:00
kyuubi-download [KYUUBI #4279] Use new Apache 'closer.lua' syntax for kyuubi-download to obtain engine 2024-01-24 12:46:53 +08:00
kyuubi-flink-sql-engine [KYUUBI #5953] [LICENSE] Update NOTICE 2024-01-10 19:29:01 +08:00
kyuubi-hive-sql-engine [KYUUBI #5953] [LICENSE] Update NOTICE 2024-01-10 19:29:01 +08:00
kyuubi-jdbc-engine [KYUUBI #6037] Fix the JDBC engine provider name 2024-02-04 10:28:42 +08:00
kyuubi-spark-sql-engine [KYUUBI #5952] Disconnect connections without running operations after engine maxlife time graceful period 2024-02-06 18:16:46 -08:00
kyuubi-trino-engine [KYUUBI #5968] Support set authentication user for Trino engine 2024-01-21 14:26:12 +08:00