Kwafoor commented on PR #5800:
URL: https://github.com/apache/kyuubi/pull/5800#issuecomment-1837757189

   Is there somthing wrong with this unit tests? Is it necessary to open a new 
issue to fix?(seems to happen frequently.)
   ```
   EngineRefWithEtcdSuite:
   - CONNECTION shared level engine name
   - USER shared level engine name
   - GROUP shared level engine name
   - SERVER shared level engine name
   - check the engine space of engine pool
   - start and get engine address with lock
   Exception in thread "pool-197-thread-1" java.lang.NullPointerException
        at 
org.apache.kyuubi.engine.EngineRef.$anonfun$create$1(EngineRef.scala:237)
        at 
org.apache.kyuubi.ha.client.etcd.EtcdDiscoveryClient.tryWithLock(EtcdDiscoveryClient.scala:187)
        at org.apache.kyuubi.engine.EngineRef.tryWithLock(EngineRef.scala:174)
        at org.apache.kyuubi.engine.EngineRef.create(EngineRef.scala:179)
        at 
org.apache.kyuubi.engine.EngineRef.$anonfun$getOrCreate$1(EngineRef.scala:306)
        at scala.Option.getOrElse(Option.scala:189)
        at org.apache.kyuubi.engine.EngineRef.getOrCreate(EngineRef.scala:306)
        at 
org.apache.kyuubi.engine.EngineRefTests.$anonfun$$init$$17(EngineRefTests.scala:298)
        at 
org.apache.kyuubi.ha.client.DiscoveryClientProvider$.withDiscoveryClient(DiscoveryClientProvider.scala:36)
        at 
org.apache.kyuubi.engine.EngineRefTests.$anonfun$$init$$16(EngineRefTests.scala:291)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:750)
   Error: Exception in thread "pool-197-thread-2" java.lang.Error: 
org.apache.kyuubi.KyuubiSQLException: Timeout to lock on path 
[/engine_test2_1.9.0-SNAPSHOT_USER_SPARK_SQL_lock/runner/default] after 4500 
ms. There would be some problem that other session may create engine timeout.
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1155)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:750)
   Caused by: org.apache.kyuubi.KyuubiSQLException: Timeout to lock on path 
[/engine_test2_1.9.0-SNAPSHOT_USER_SPARK_SQL_lock/runner/default] after 4500 
ms. There would be some problem that other session may create engine timeout.
        at 
org.apache.kyuubi.KyuubiSQLException$.apply(KyuubiSQLException.scala:70)
        at 
org.apache.kyuubi.ha.client.etcd.EtcdDiscoveryClient.tryWithLock(EtcdDiscoveryClient.scala:181)
        at org.apache.kyuubi.engine.EngineRef.tryWithLock(EngineRef.scala:174)
        at org.apache.kyuubi.engine.EngineRef.create(EngineRef.scala:179)
        at 
org.apache.kyuubi.engine.EngineRef.$anonfun$getOrCreate$1(EngineRef.scala:306)
        at scala.Option.getOrElse(Option.scala:189)
        at org.apache.kyuubi.engine.EngineRef.getOrCreate(EngineRef.scala:306)
        at 
org.apache.kyuubi.engine.EngineRefTests.$anonfun$$init$$17(EngineRefTests.scala:298)
        at 
org.apache.kyuubi.ha.client.DiscoveryClientProvider$.withDiscoveryClient(DiscoveryClientProvider.scala:36)
        at 
org.apache.kyuubi.engine.EngineRefTests.$anonfun$$init$$16(EngineRefTests.scala:291)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        ... 2 more
   Exception in thread "pool-197-thread-3" java.lang.NullPointerException
        at 
org.apache.kyuubi.engine.EngineRef.$anonfun$create$1(EngineRef.scala:237)
        at 
org.apache.kyuubi.ha.client.etcd.EtcdDiscoveryClient.tryWithLock(EtcdDiscoveryClient.scala:187)
        at org.apache.kyuubi.engine.EngineRef.tryWithLock(EngineRef.scala:174)
        at org.apache.kyuubi.engine.EngineRef.create(EngineRef.scala:179)
        at 
org.apache.kyuubi.engine.EngineRef.$anonfun$getOrCreate$1(EngineRef.scala:306)
        at scala.Option.getOrElse(Option.scala:189)
        at org.apache.kyuubi.engine.EngineRef.getOrCreate(EngineRef.scala:306)
        at 
org.apache.kyuubi.engine.EngineRefTests.$anonfun$$init$$17(EngineRefTests.scala:298)
        at 
org.apache.kyuubi.ha.client.DiscoveryClientProvider$.withDiscoveryClient(DiscoveryClientProvider.scala:36)
        at 
org.apache.kyuubi.engine.EngineRefTests.$anonfun$$init$$16(EngineRefTests.scala:291)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:750)
   ```


-- 
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]

Reply via email to