suxiaogang223 opened a new pull request, #65564:
URL: https://github.com/apache/doris/pull/65564
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary:
The external regression pipeline currently runs two heavyweight Kerberos
containers. Each container starts HiveServer2, YARN
ResourceManager/NodeManager, MariaDB, and other processes that the Doris
Kerberos cases do not use, resulting in roughly 4.3 GB of combined memory usage.
This PR replaces those images with a minimal reusable environment based on
Apache Hive 3.1.3. Each realm now runs only:
- a native MIT Kerberos KDC
- one HDFS NameNode and DataNode
- one Kerberos-enabled Hive Metastore backed by embedded Derby
The existing realm names, ports, service principals, client principals, and
keytab filenames remain unchanged. JVM heaps are explicitly bounded, and each
container has a 1.5 GB memory limit.
The container no longer owns Hive test fixtures. `test_single_hive_kerberos`
and `test_two_hive_kerberos` now create their test database, Hive table, and
four rows through Doris. `test_non_catalog_kerberos` also creates its database
so it no longer depends on suite execution order. Existing expected output
files remain unchanged.
### Release note
None
### Check List (For Author)
- Test
- [ ] Regression test
- [ ] Unit Test
- [x] Manual test (add detailed scripts or steps below)
- Rendered both realm configurations with `envsubst`.
- Validated generated XML files with `xmllint --noout`.
- Validated shell syntax with `bash -n`.
- Validated the rendered stack with `docker compose config`.
- Validated patch whitespace with `git diff --check`.
- Per the development request, the Docker image was not built and
the local environment was not started.
- [ ] 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
- Behavior changed:
- [ ] No.
- [x] Yes. The Kerberos regression Docker stack now only provides KDC,
HDFS, and HMS; test fixtures are initialized through Doris.
- Does this need documentation?
- [x] No.
- [ ] Yes.
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label
--
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]