kyuubi/externals/kyuubi-spark-sql-engine
sychen 4bf17a25ed
[KYUUBI #1473] Exit gracefully when engine idle
### _Why are the changes needed?_
https://github.com/apache/incubator-kyuubi/issues/1473

It is not graceful to exit when engine is idle, which may cause AM to try again.
The current workaround is to configure `spark.yarn.maxAppAttempts`.

```
yarn.ApplicationMaster: Final app status: FAILED, exitCode: 16, (reason: Shutdown hook called before final status was reported.)
```

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [x] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.readthedocs.io/en/latest/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #1474 from cxzl25/KYUUBI-1473.

Closes #1473

dc07b387 [sychen] assert engine
6df54ebe [sychen] Exit gracefully when engine idle

Authored-by: sychen <sychen@trip.com>
Signed-off-by: ulysses-you <ulyssesyou@apache.org>
2021-12-01 09:36:43 +08:00
..
src [KYUUBI #1473] Exit gracefully when engine idle 2021-12-01 09:36:43 +08:00
pom.xml [KYUUBI #1441] [BUILD] Bump 1.5.0-SNAPSHOT 2021-11-23 22:22:26 +08:00