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

yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new cb7675e24fd branch-4.1: [chore](docker) Make DORIS_CLOUD_PREFIX unique 
with timestamp and UUID suffix #62275 (#62330)
cb7675e24fd is described below

commit cb7675e24fd2e909eed75bf5a6e19ec5d3f6f5b0
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Apr 11 20:33:52 2026 +0800

    branch-4.1: [chore](docker) Make DORIS_CLOUD_PREFIX unique with timestamp 
and UUID suffix #62275 (#62330)
    
    Cherry-picked from #62275
    
    Co-authored-by: walter <[email protected]>
---
 docker/runtime/doris-compose/cluster.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/docker/runtime/doris-compose/cluster.py 
b/docker/runtime/doris-compose/cluster.py
index bfa8eb65a4c..6bbd43f54cd 100644
--- a/docker/runtime/doris-compose/cluster.py
+++ b/docker/runtime/doris-compose/cluster.py
@@ -22,6 +22,7 @@ import hashlib
 import jsonpickle
 import os
 import os.path
+import uuid
 import utils
 import time
 
@@ -759,7 +760,13 @@ class MS(CLOUD):
         envs = super().docker_env()
         for key, value in self.cluster.cloud_store_config.items():
             envs[key] = value
-        envs['DORIS_CLOUD_PREFIX'] = 'doris_docker_env_' + self.cluster.name
+        prefix = 'doris_docker_env_{}_{}_{}'.format(
+            self.cluster.name,
+            time.strftime("%Y%m%d_%H%M%S"),
+            uuid.uuid4().hex[:8],
+        )
+        envs['DORIS_CLOUD_PREFIX'] = prefix
+        LOG.info(f"Set DORIS_CLOUD_PREFIX to {prefix}")
         return envs
 
 


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

Reply via email to