Gabriel39 opened a new pull request, #71323: URL: https://github.com/apache/doris/pull/71323
### Background Two `NewOrcReaderTest` cases read projected nested structs from a checked-in Hive ORC archive, with eager and lazy loading respectively. Each case extracts that archive before checking the reader's results. ### What problem does this PR solve? Issue Number: None Related PR: None PR Type: Test Problem Summary: Both cases fail during fixture preparation when run as root in containers without `CAP_CHOWN`: tar tries to restore archived ownership and exits with status 2 (`std::system` status 512). Add `--no-same-owner` to both extraction commands so fixture preparation succeeds without changing the ORC data or reading assertions. ### Details - **Failure:** `ReadProjectedNestedStructChildFromHiveOrcFixture` and `ReadLazyProjectedNestedStructChildFromHiveOrcFixture` stop at the extraction assertion with `Cannot change ownership`. The original commands both fail deterministically in a fresh container with `--cap-drop ALL` and `no-new-privileges`. - **Cause:** Root tar restores the archive's ownership by default, but the isolated container lacks the capability to change file ownership. The tests only need the file contents. - **Stability evidence:** Executed each extraction command taken from the test source before and after the change. Both fail before the change in restricted root containers. After the change, both succeed as restricted root, ordinary root, and restricted non-root, with all nine extracted file hashes matching the archive. ### Testing - Locally executed the two source-derived extraction commands in fresh `ubuntu:latest` containers with `--cap-drop ALL --security-opt no-new-privileges`: both fail before the fix and succeed after it. - Also verified both fixed commands as ordinary root and restricted non-root; compared every extracted file's SHA-256 with the checked-in archive. - Full BE unit tests were not run locally; this worktree has no built `doris_be_test` binary. ### Release note None ### Check List (For Author) - Behavior changed: No - Does this need documentation: No - Pre-submission status: Partially verified: fixture extraction verified; full BE unit tests not run locally. ### AI Disclosure - Tool: Codex (GPT-6) - Generated: Test fixture command changes and this description. - Human review: not stated -- 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]
