This is an automated email from the ASF dual-hosted git repository.

w41ter pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 16c92b6b431 [chore](test) Use `DORIS_MS_INSTANCE_ID` instead of 
`get_instance` (#58980)
16c92b6b431 is described below

commit 16c92b6b431f4db0a8d391b4bad0975ef5a9b652
Author: Yixuan Wang <[email protected]>
AuthorDate: Fri Dec 12 17:37:53 2025 +0800

    [chore](test) Use `DORIS_MS_INSTANCE_ID` instead of `get_instance` (#58980)
---
 .../recycler/test_recycler_clone_instance.groovy       | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git 
a/regression-test/suites/cloud_p0/recycler/test_recycler_clone_instance.groovy 
b/regression-test/suites/cloud_p0/recycler/test_recycler_clone_instance.groovy
index 86102ba5216..ab13714f61a 100644
--- 
a/regression-test/suites/cloud_p0/recycler/test_recycler_clone_instance.groovy
+++ 
b/regression-test/suites/cloud_p0/recycler/test_recycler_clone_instance.groovy
@@ -26,21 +26,13 @@ suite("test_recycler_clone_instance") {
         return
     }
 
-    def get_instance_id = { host ->
-        def url = 
"http://${host}/MetaService/http/get_instance?token=${token}&instance_id=${instance_id}";
-        def (code, out, err) = curl('GET', url, null, 180)
-        assert code == 0 : "Failed to get multi version status: ${out} ${err}"
-        def json = parseJson(out)
-        assert json["code"] == "OK" : "Get instance failed: ${out} ${err}"
-        if (json["result"].containsKey("instance_id")) {
-            return json["result"]["instance_id"]
-        }
-        return null
-    }
-
     sql "CREATE DATABASE IF NOT EXISTS ${dbName}"
 
-    def instanceId = get_instance_id(metaServiceHttpAddress)
+    def instanceId = System.getenv("DORIS_MS_INSTANCE_ID")
+    logger.info("DORIS_MS_INSTANCE_ID: ${instanceId}")
+
+    assert instanceId != null, "DORIS_MS_INSTANCE_ID is not set"
+
     def username = "root"
 
     logger.info("Querying cluster snapshots")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to