[test](docker) improve the prefix path of cloud mode docker env#65001
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
/review |
|
run buildall |
|
/review |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
There was a problem hiding this comment.
Found one correctness gap in the docker-compose cloud prefix change.
Critical checkpoint conclusions: the task is narrow and focused, but the implementation misses a functionally parallel instance-creation path. No concurrency, storage-format, FE/BE protocol, transaction, persistence, or lifecycle issue was introduced by this Python-only helper change. No new Doris config item is added. Python syntax compilation passed for the compose helper files; full docker/regression execution was not run in this review runner. Test coverage is weak for the changed behavior because the PR changes only cluster.py and does not add an external-MS/custom-prefix regression case.
Subagent conclusions: optimizer-rewrite reported no optimizer, query-routing, or parallel execution issue. tests-session-config proposed TSC-1, which was verified and accepted as the inline comment. The separate cloud.ini.example/cloud-config ambiguity was dismissed with code evidence because the changed behavior can be driven through --env, while the accepted issue is the external-MS auto-create path. Final convergence round 1 ended with both live subagents reporting NO_NEW_VALUABLE_FINDINGS for the same ledger/comment set.
User focus: no additional user-provided review focus points.
| time.strftime("%Y%m%d_%H%M%S"), | ||
| uuid.uuid4().hex[:8], | ||
| ) | ||
| base_prefix = envs.get('DORIS_CLOUD_PREFIX', '').strip().strip('/') |
There was a problem hiding this comment.
This only applies the base-prefix rewrite on MS containers, but the --external-ms flow creates the instance from FE-1 instead. In that path FE.docker_env() sets AUTO_CREATE_INSTANCE=1 and carries the user env through unchanged, then init_fe.sh calls create_doris_instance, which sends ${DORIS_CLOUD_PREFIX} directly as the storage prefix. So --env DORIS_CLOUD_PREFIX=base works for a normal cloud cluster as base/doris_docker_env_..., but an external-MS cluster stores everything under just base, causing different external-MS clusters that share the same bucket/base to collide. Please share this prefix composition with the FE auto-create path, or otherwise ensure the generated per-cluster suffix is applied before FE-1 creates the instance.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)