### _Why are the changes needed?_ https://github.com/apache/incubator-kyuubi/issues/2112 Clients less than version 2.1 have no [HIVE-4924](https://issues.apache.org/jira/browse/HIVE-4924) Patch, no `queryTimeout `parameter and no `TIMEOUT` status. When the server enables `kyuubi.operation.query.timeout`, this will cause the client of the lower version to get stuck. Check thrift protocol version <= `HIVE_CLI_SERVICE_PROTOCOL_V8`, convert `TIMEDOUT_STATE` to `CANCELED`. ### _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 - [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #2113 from cxzl25/KYUUBI-2112. Closes #2112 c50ab2c8 [sychen] fix style 76224707 [sychen] add comment d07c945a [sychen] fix style dbaeb1f5 [sychen] use protocol version 46307b1f [sychen] make it simple ce9d75f9 [sychen] fix UT e73fd744 [sychen] add UT 147059fa [sychen] add config description to documentation 0e4e3af2 [sychen] fix style 6d226aa3 [sychen] queryTimeout compatibility Authored-by: sychen <sychen@trip.com> Signed-off-by: ulysses-you <ulyssesyou@apache.org> |
||
|---|---|---|
| .. | ||
| src | ||
| pom.xml | ||