This is an automated email from the ASF dual-hosted git repository.
csy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kyuubi.git
The following commit(s) were added to refs/heads/master by this push:
new 6f7921999 [KYUUBI #5340] AdminResourceSuite make engine idle time 3min
6f7921999 is described below
commit 6f7921999379d96cdb48d7f15640e6946ce2ad4b
Author: sychen <[email protected]>
AuthorDate: Thu Sep 28 21:36:17 2023 +0800
[KYUUBI #5340] AdminResourceSuite make engine idle time 3min
### _Why are the changes needed?_
close #5340
### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including
negative and positive cases if possible
- [ ] Add screenshots for manual tests if appropriate
- [ ] [Run
test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests)
locally before make a pull request
### _Was this patch authored or co-authored using generative AI tooling?_
No
Closes #5341 from cxzl25/KYUUBI-5340.
Closes #5340
4000b267c [sychen] trigger test
0122e8d7c [sychen] trigger test
86affd3e6 [sychen] trigger test
83cb967ad [sychen] trigger test
37fda1113 [sychen] AdminResourceSuite make engine idle time 3min
Authored-by: sychen <[email protected]>
Signed-off-by: Shaoyun Chen <[email protected]>
---
.../org/apache/kyuubi/server/api/v1/AdminResourceSuite.scala | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git
a/kyuubi-server/src/test/scala/org/apache/kyuubi/server/api/v1/AdminResourceSuite.scala
b/kyuubi-server/src/test/scala/org/apache/kyuubi/server/api/v1/AdminResourceSuite.scala
index 6ca00c802..ea87e3ea0 100644
---
a/kyuubi-server/src/test/scala/org/apache/kyuubi/server/api/v1/AdminResourceSuite.scala
+++
b/kyuubi-server/src/test/scala/org/apache/kyuubi/server/api/v1/AdminResourceSuite.scala
@@ -18,6 +18,7 @@
package org.apache.kyuubi.server.api.v1
import java.nio.charset.StandardCharsets
+import java.time.Duration
import java.util.{Base64, UUID}
import javax.ws.rs.client.Entity
import javax.ws.rs.core.{GenericType, MediaType}
@@ -49,6 +50,7 @@ class AdminResourceSuite extends KyuubiFunSuite with
RestFrontendTestHelper {
override protected lazy val conf: KyuubiConf = KyuubiConf()
.set(KyuubiConf.SERVER_ADMINISTRATORS, Set("admin001"))
+ .set(KyuubiConf.ENGINE_IDLE_TIMEOUT, Duration.ofMinutes(3).toMillis)
private val encodeAuthorization: String = {
new String(
@@ -275,7 +277,6 @@ class AdminResourceSuite extends KyuubiFunSuite with
RestFrontendTestHelper {
conf.set(KyuubiConf.ENGINE_TYPE, SPARK_SQL.toString)
conf.set(KyuubiConf.FRONTEND_THRIFT_BINARY_BIND_PORT, 0)
conf.set(HighAvailabilityConf.HA_NAMESPACE, "kyuubi_test")
- conf.set(KyuubiConf.ENGINE_IDLE_TIMEOUT, 180000L)
conf.set(KyuubiConf.GROUP_PROVIDER, "hadoop")
val engine =
@@ -320,7 +321,6 @@ class AdminResourceSuite extends KyuubiFunSuite with
RestFrontendTestHelper {
conf.set(KyuubiConf.ENGINE_TYPE, SPARK_SQL.toString)
conf.set(KyuubiConf.FRONTEND_THRIFT_BINARY_BIND_PORT, 0)
conf.set(HighAvailabilityConf.HA_NAMESPACE, "kyuubi_test")
- conf.set(KyuubiConf.ENGINE_IDLE_TIMEOUT, 180000L)
conf.set(KyuubiConf.GROUP_PROVIDER, "hadoop")
val engine =
@@ -366,7 +366,6 @@ class AdminResourceSuite extends KyuubiFunSuite with
RestFrontendTestHelper {
conf.set(KyuubiConf.ENGINE_TYPE, SPARK_SQL.toString)
conf.set(KyuubiConf.FRONTEND_THRIFT_BINARY_BIND_PORT, 0)
conf.set(HighAvailabilityConf.HA_NAMESPACE, "kyuubi_test")
- conf.set(KyuubiConf.ENGINE_IDLE_TIMEOUT, 180000L)
conf.set(KyuubiConf.GROUP_PROVIDER, "hadoop")
val id = UUID.randomUUID().toString
@@ -401,7 +400,6 @@ class AdminResourceSuite extends KyuubiFunSuite with
RestFrontendTestHelper {
conf.set(KyuubiConf.ENGINE_TYPE, SPARK_SQL.toString)
conf.set(KyuubiConf.FRONTEND_THRIFT_BINARY_BIND_PORT, 0)
conf.set(HighAvailabilityConf.HA_NAMESPACE, "kyuubi_test")
- conf.set(KyuubiConf.ENGINE_IDLE_TIMEOUT, 180000L)
conf.set(KyuubiConf.GROUP_PROVIDER, "hadoop")
val engine =
@@ -446,7 +444,6 @@ class AdminResourceSuite extends KyuubiFunSuite with
RestFrontendTestHelper {
conf.set(KyuubiConf.ENGINE_TYPE, SPARK_SQL.toString)
conf.set(KyuubiConf.FRONTEND_THRIFT_BINARY_BIND_PORT, 0)
conf.set(HighAvailabilityConf.HA_NAMESPACE, "kyuubi_test")
- conf.set(KyuubiConf.ENGINE_IDLE_TIMEOUT, 180000L)
conf.set(KyuubiConf.GROUP_PROVIDER, "hadoop")
val engine =
@@ -492,7 +489,6 @@ class AdminResourceSuite extends KyuubiFunSuite with
RestFrontendTestHelper {
conf.set(KyuubiConf.ENGINE_TYPE, SPARK_SQL.toString)
conf.set(KyuubiConf.FRONTEND_THRIFT_BINARY_BIND_PORT, 0)
conf.set(HighAvailabilityConf.HA_NAMESPACE, "kyuubi_test")
- conf.set(KyuubiConf.ENGINE_IDLE_TIMEOUT, 180000L)
conf.set(KyuubiConf.GROUP_PROVIDER, "hadoop")
val engineSpace = DiscoveryPaths.makePath(