suxiaogang223 opened a new pull request, #62664:
URL: https://github.com/apache/doris/pull/62664
### What problem does this PR solve?
Issue Number: N/A
Related PR: #62103
Problem Summary:
External regression docker startup became unstable after the Hive docker
startup workflow was optimized. The startup script launched many heavy
thirdparty components at the same time, which amplified resource contention and
made health checks for DB2/ClickHouse and other services flaky. When one
component failed, remaining background startup jobs and compose stacks could
continue changing container state, making retry and log collection unstable.
This change also fixes two concrete regressions observed in the external
regression logs:
- HiveServer2 did not load the same Hive aux jars as the metastore before
executing refreshed HQL through beeline, so LZO table DDL could fail with
`Cannot find class 'com.hadoop.mapreduce.LzoTextInputFormat'`.
- The Iceberg stack used generic container names such as
`${CONTAINER_UID}postgres`, which could conflict with the standalone PostgreSQL
external component.
The fix limits concurrent external component startup by default, cleans
registered compose stacks after startup failure, loads Hive aux jars before
starting HiveServer2, tracks Hive refresh dependencies more accurately, and
gives Iceberg-internal containers unique names.
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [x] Manual test (add detailed scripts or steps below)
- `bash -n docker/thirdparties/run-thirdparties-docker.sh
docker/thirdparties/docker-compose/hive/scripts/start-hive-server.sh
docker/thirdparties/docker-compose/hive/scripts/start-hive-metastore.sh
docker/thirdparties/docker-compose/hive/scripts/hive-common-lib.sh
docker/thirdparties/docker-compose/hive/scripts/hive-module-lib.sh
docker/thirdparties/docker-compose/hive/scripts/bin/hive`
- `bash
docker/thirdparties/test/run-thirdparties-docker-hive-bootstrap-groups-test.sh`
- `git diff --check`
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [x] Yes. <!-- Explain the behavior change --> External docker startup
now limits concurrent component startup by default, cleans registered compose
stacks after startup failure, loads Hive aux jars before HiveServer2 starts,
and avoids Iceberg container-name conflicts with other external components.
- Does this need documentation?
- [x] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should
merge into -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]