Hello Quanlong Huang, Joe McDonnell, Michael Smith, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/24358
to look at the new patch set (#5).
Change subject: IMPALA-12955: Slim down profile tool deps
......................................................................
IMPALA-12955: Slim down profile tool deps
Split impala-profile-tool dependencies into smaller link units so
the tool no longer pulls in unused runtime libraries such as HDFS,
JVM, Kudu, SASL, Kerberos, SSL, and crypto dependencies.
The profile tool now links a smaller thrift library, a profile-tool
runtime-profile subset, and a ProfileToolCommon target. Keep the
CMake source lists shared with the full targets to avoid drift.
Move GetStackTrace() into common/stack-trace.* so both the full
Common library and ProfileToolCommon can share it without linking
debug-util.cc. Move Status thrift/proto/HS2 conversions out of the
Status class into status-serialization.* free functions. The profile
tool links core Status construction and formatting, but not the
serialization helpers that need broader generated code.
The archive reader uses local base64 length validation, base64
unescaping, zlib inflate, and local thrift deserialization to avoid
pulling coding-util.cc and thrift-util.cc dependencies into the profile
tool. Error messages now distinguish invalid base64 length from invalid
base64 data.
The Linux dependency test checks both direct NEEDED entries and
transitive ldd output so regressions that arrive through shared helper
libraries are caught.
Tests:
- ./buildall.sh -notests -noclean -cmake_only
- make -C be/src/util impala-profile-tool
- make -C be/src/common Common
- make Catalog Runtime Exec Scheduling Service Statestore
- bin/impala-py.test -q tests/observability/test_profile_tool.py \
tests/observability/test_profile_tool_dependencies.py
- ./buildall.sh -release -so -notests -noclean -cmake_only
- make -C be/src/util impala-profile-tool (RELEASE, shared)
- be/build/latest/util/impala-profile-tool --help
- ldd be/build/latest/util/impala-profile-tool
- bin/impala-py.test -q \
tests/observability/test_profile_tool_dependencies.py
- git diff --check
Generated-by: OpenAI Codex
Change-Id: Id476411dcf6c46079e2e2addc5cdd552bc23f8a1
---
M be/generated-sources/gen-cpp/CMakeLists.txt
M be/src/catalog/catalog-server.cc
M be/src/catalog/workload-management-init.cc
M be/src/common/CMakeLists.txt
A be/src/common/stack-trace.cc
A be/src/common/stack-trace.h
A be/src/common/status-serialization.cc
A be/src/common/status-serialization.h
M be/src/common/status.cc
M be/src/common/status.h
M be/src/exec/catalog-op-executor.cc
M be/src/exec/data-source-scan-node.cc
M be/src/runtime/coordinator-backend-state.cc
M be/src/runtime/krpc-data-stream-sender.cc
M be/src/runtime/mem-pool.h
M be/src/runtime/query-state.cc
M be/src/runtime/runtime-filter-bank.cc
A be/src/runtime/summary-stats.h
M be/src/scheduling/admission-control-service.cc
M be/src/scheduling/remote-admission-control-client.cc
M be/src/service/child-query.cc
M be/src/service/client-request-state.cc
M be/src/service/control-service.cc
M be/src/service/data-stream-service.cc
M be/src/service/fe-support.cc
M be/src/service/impala-beeswax-server.cc
M be/src/service/impala-server.cc
M be/src/statestore/statestore-subscriber.cc
M be/src/statestore/statestore.cc
M be/src/util/CMakeLists.txt
M be/src/util/cpu-info.cc
M be/src/util/debug-util.cc
M be/src/util/debug-util.h
A be/src/util/error-msg.cc
M be/src/util/error-util.cc
A be/src/util/runtime-profile-archive.cc
A be/src/util/runtime-profile-periodic.cc
A be/src/util/runtime-profile-serialization.cc
M be/src/util/runtime-profile.cc
A tests/observability/test_profile_tool_dependencies.py
40 files changed, 1,092 insertions(+), 652 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/58/24358/5
--
To view, visit http://gerrit.cloudera.org:8080/24358
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Id476411dcf6c46079e2e2addc5cdd552bc23f8a1
Gerrit-Change-Number: 24358
Gerrit-PatchSet: 5
Gerrit-Owner: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Joe McDonnell <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>