cxzl25 opened a new issue, #5340: URL: https://github.com/apache/kyuubi/issues/5340
### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) ### Search before asking - [X] I have searched in the [issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no similar issues. ### What kind of test improve? - [X] Fix flaky tests. - [ ] Fix bug in tests. - [ ] Increase test coverage. - [ ] Other kinds of test improve. ### Describe the issues of the existing tests or improvements for new tests https://github.com/apache/kyuubi/actions/runs/6327051137/job/17188290075 In `AdminResourceSuite` test `"list sessions/operations with filter"` asynchronously starts 3 engines with different users, but the engine idle time is only 5s. Test `"list/close operations"` engine exits early due to short idle time. ## Server ```java 17:19:19.850 KyuubiSessionManager-exec-pool: Thread-173 INFO ZooKeeper: Session: 0x100001f88840001 closed 17:19:19.850 ScalaTest-main-running-AdminResourceSuite INFO KyuubiSessionImpl: [admin:localhost] SessionHandle [932f2b36-c574-40fa-af04-0cdf60d4bac3] - Engine has been launched, elapsed time: 47 s 17:19:19.851 KyuubiSessionManager-exec-pool: Thread-173 INFO LaunchEngine: Processing admin's query[adb16051-58aa-4774-a2e3-4ec01772957c]: RUNNING_STATE -> FINISHED_STATE, time taken: 47.273 seconds 17:19:19.851 ScalaTest-main-running-AdminResourceSuite INFO GetCatalogs: Processing admin's query[9f52d011-045a-4e66-b743-a63cae39e24d]: INITIALIZED_STATE -> RUNNING_STATE, statement: GetCatalogs 17:19:19.851 ScalaTest-main-running-AdminResourceSuite INFO HadoopCredentialsManager: Send new credentials with epoch 0 to SQL engine through session 932f2b36-c574-40fa-af04-0cdf60d4bac3 17:19:19.851 KyuubiSessionManager-exec-pool: Thread-173-EventThread INFO ClientCnxn: EventThread shut down for session: 0x100001f88840001 17:19:19.862 ScalaTest-main-running-AdminResourceSuite WARN KyuubiSyncThriftClient: TRenewDelegationTokenReq(sessionHandle:TSessionHandle(sessionId:THandleIdentifier(guid:93 2F 2B 36 C5 74 40 FA AF 04 0C DF 60 D4 BA C3, secret:C2 EE 5B 97 3E A0 41 FC AC 16 9B D7 08 ED 8F 38)), delegationToken:SERUUwAAAA==) failed on engine side org.apache.thrift.transport.TTransportException: null at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132) ~[libthrift-0.9.3.jar:0.9.3] at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86) ~[libthrift-0.9.3.jar:0.9.3] at org.apache.thrift.transport.TSaslTransport.readLength(TSaslTransport.java:376) ~[libthrift-0.9.3.jar:0.9.3] at org.apache.thrift.transport.TSaslTransport.readFrame(TSaslTransport.java:453) ~[libthrift-0.9.3.jar:0.9.3] at org.apache.thrift.transport.TSaslTransport.read(TSaslTransport.java:435) ~[libthrift-0.9.3.jar:0.9.3] at org.apache.thrift.transport.TSaslClientTransport.read(TSaslClientTransport.java:37) ~[libthrift-0.9.3.jar:0.9.3] at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86) ~[libthrift-0.9.3.jar:0.9.3] at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:429) ~[libthrift-0.9.3.jar:0.9.3] at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:318) ~[libthrift-0.9.3.jar:0.9.3] at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:219) ~[libthrift-0.9.3.jar:0.9.3] at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:77) ~[libthrift-0.9.3.jar:0.9.3] at org.apache.hive.service.rpc.thrift.TCLIService$Client.recv_RenewDelegationToken(TCLIService.java:636) ~[hive-service-rpc-3.1.3.jar:3.1.3] at org.apache.hive.service.rpc.thrift.TCLIService$Client.RenewDelegationToken(TCLIService.java:623) ~[hive-service-rpc-3.1.3.jar:3.1.3] ``` ### Engine ``` 23/09/27 17:19:17 INFO SparkSQLSessionManager: Idled for more than 5000 ms, terminating 23/09/27 17:19:17 INFO SparkSQLEngine: Service: [SparkTBinaryFrontend] is stopping. ``` ### Are you willing to submit PR? - [ ] Yes. I would be willing to submit a PR with guidance from the Kyuubi community to improve. - [ ] No. I cannot submit a PR at this time. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
