cxzl25 commented on code in PR #6069:
URL: https://github.com/apache/kyuubi/pull/6069#discussion_r1497246134
##########
kyuubi-common/src/test/scala/org/apache/kyuubi/service/TFrontendServiceSuite.scala:
##########
@@ -557,9 +557,7 @@ class TFrontendServiceSuite extends KyuubiFunSuite {
assert(cancelOpResp.getStatus.getStatusCode ===
TStatusCode.SUCCESS_STATUS)
assert(sessionManager.getOpenSessionCount === 1)
assert(session.lastIdleTime === 0)
- eventually(timeout(Span(60, Seconds)), interval(Span(1, Seconds))) {
Review Comment:
If the execution speed is very fast, the access time may be equal. This
waiting may cause the operation and session to be cleared in advance, and
subsequent asserts will fail.
https://github.com/apache/kyuubi/blob/fbe80ace11e4049e5a00737a208dfe6f50e3d370/kyuubi-common/src/main/scala/org/apache/kyuubi/session/SessionManager.scala#L311-L318
--
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]