This is an automated email from the ASF dual-hosted git repository.
Gabriel39 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 692c3c96a1b [test](orc) Backport fixture extraction fix to branch-4.1
(#71339)
692c3c96a1b is described below
commit 692c3c96a1ba9fc6902cad5c1af50aa2cfda3cff
Author: Gabriel <[email protected]>
AuthorDate: Fri Dec 4 09:26:34 2026 +0800
[test](orc) Backport fixture extraction fix to branch-4.1 (#71339)
### What problem does this PR solve?
Issue Number: None
Related PR: apache/doris#71323
Backport
[apache/doris#71323](https://github.com/apache/doris/pull/71323), commit
`aba3c6ac2ae7b32a29b85e95b94204eec93ad22b`, to `branch-4.1`.
The eager and lazy projected-nested-struct ORC tests fail while
preparing fixtures in root containers without `CAP_CHOWN`. Add
`--no-same-owner` to both tar commands. The fixture contents and ORC
reader assertions are unchanged; the patch matches upstream.
### Validation
- Ran both extraction commands taken from the branch's test source: both
original commands fail with ownership errors as restricted root; both
fixed commands pass as restricted root, ordinary root and restricted
non-root.
- All nine extracted files match the archive's SHA-256 hashes in every
successful run.
- clang-format 16 passed on the changed C++ file.
- Full BE unit tests were not run locally; validation here covers
fixture preparation.
### Release note
None
### Check List (For Author)
- [x] Existing unit-test fixtures fixed
- Behavior changed: No product behavior change.
- Documentation needed: No.
---
be/test/format_v2/orc/orc_reader_test.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/be/test/format_v2/orc/orc_reader_test.cpp
b/be/test/format_v2/orc/orc_reader_test.cpp
index 28564cf88dd..8a13e82977b 100644
--- a/be/test/format_v2/orc/orc_reader_test.cpp
+++ b/be/test/format_v2/orc/orc_reader_test.cpp
@@ -11543,8 +11543,9 @@ TEST_F(NewOrcReaderTest,
ReadProjectedNestedStructChildFromHiveOrcFixture) {
ASSERT_TRUE(std::filesystem::exists(archive)) << archive;
const auto extract_dir = _test_dir / "orc_nested_types";
std::filesystem::create_directories(extract_dir);
+ // Restoring archived ownership requires CAP_CHOWN, which isolated test
containers lack.
const std::string extract_cmd =
- "tar -xzf '" + archive.string() + "' -C '" + extract_dir.string()
+ "'";
+ "tar --no-same-owner -xzf '" + archive.string() + "' -C '" +
extract_dir.string() + "'";
ASSERT_EQ(std::system(extract_cmd.c_str()), 0);
const auto file_path =
extract_dir /
@@ -11606,8 +11607,9 @@ TEST_F(NewOrcReaderTest,
ReadLazyProjectedNestedStructChildFromHiveOrcFixture) {
ASSERT_TRUE(std::filesystem::exists(archive)) << archive;
const auto extract_dir = _test_dir / "lazy_orc_nested_types";
std::filesystem::create_directories(extract_dir);
+ // Restoring archived ownership requires CAP_CHOWN, which isolated test
containers lack.
const std::string extract_cmd =
- "tar -xzf '" + archive.string() + "' -C '" + extract_dir.string()
+ "'";
+ "tar --no-same-owner -xzf '" + archive.string() + "' -C '" +
extract_dir.string() + "'";
ASSERT_EQ(std::system(extract_cmd.c_str()), 0);
const auto file_path =
extract_dir /
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]