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

CritasWang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iotdb-client-rust.git


The following commit(s) were added to refs/heads/main by this push:
     new 0ef4f48  CI: match the DataNode banner specifically when waiting for 
IoTDB (standalone image's ConfigNode prints its own 'set up successfully' line 
first, so the generic match passed before the DataNode was listening)
0ef4f48 is described below

commit 0ef4f488818815f444191ee11cd971b3407ea4a3
Author: CritasWang <[email protected]>
AuthorDate: Mon Jul 20 11:20:50 2026 +0800

    CI: match the DataNode banner specifically when waiting for IoTDB 
(standalone image's ConfigNode prints its own 'set up successfully' line first, 
so the generic match passed before the DataNode was listening)
---
 .github/workflows/ci.yml | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f731269..ab4c237 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -86,18 +86,19 @@ jobs:
       - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
 
       # A bare TCP probe is unreliable: docker's port proxy accepts connections
-      # before the DataNode listens (then resets them), so wait for the
-      # startup banner in the container log instead.
+      # before the DataNode listens (then resets them). Match the DataNode
+      # banner specifically — the ConfigNode prints a similar "set up
+      # successfully" line earlier in the standalone image.
       - name: Wait for IoTDB
         run: |
           for i in $(seq 1 120); do
-            if docker logs "${{ job.services.iotdb.id }}" 2>&1 | grep -q "set 
up successfully"; then
-              echo "IoTDB is up after ${i}s"
+            if docker logs "${{ job.services.iotdb.id }}" 2>&1 | grep -q 
"DataNode is set up successfully"; then
+              echo "IoTDB DataNode is up after ${i}s"
               exit 0
             fi
             sleep 1
           done
-          echo "IoTDB did not become ready in 120s" >&2
+          echo "IoTDB DataNode did not become ready in 120s" >&2
           docker logs "${{ job.services.iotdb.id }}" 2>&1 | tail -50
           exit 1
 

Reply via email to