Hello Impala Public Jenkins,

I'd like you to reexamine a change. Please visit

    https://gerrit.cloudera.org/24938

to look at the new patch set (#4).

Change subject: IMPALA-15359: (Part 2) Apply Impala-specific Kudu patches
......................................................................

IMPALA-15359: (Part 2) Apply Impala-specific Kudu patches

Reapply Impala's customizations on top of the new upstream
CMakeLists.txt files:

- Add the kudu-{util,security,rpc}-proto-deps aggregate targets.
- Add KUDU_HEADERS_USE_SHORT_STATUS_MACROS definitions.
- Skip building files Impala does not use (char_util.cc, file_cache.cc,
  minidump.cc, yamlreader.cc, version_info.cc) and the AVX2 detection
  block (Impala centralizes AVX2 detection in be/CMakeLists.txt).
- Force-enable kudu_test_util/mini_kdc since Impala relies on them.
- Give protoc-gen-insertions/protoc-gen-krpc their Impala-specific
  extra link dependencies.
- Skip the yaml lib and instance_detector-test, which Impala does not
  build.

Most of the Impala-local patches previously carried on top of Kudu
1.17.1 (RSASSA-PSS cert support, ARM64 NEON, Prometheus metrics
refactor, env_posix ssl_make_unique) are now upstream and need no
reapplication. The remainder, which are Impala-only integration points
not part of Kudu proper, are reapplied here:

- security/init.cc, util/flags.cc, util/logging.cc: declare (rather
  than define) flags that Impala itself defines in
  common/global-flags.cc, and skip BlockSigUSR1() since Impala does
  not link Kudu's minidump library.
- security/gssapi.cc: dedicated SPNEGO keytab flag (IMPALA-12318).
- security/test/mini_kdc.cc: hardcode /tmp for the KDC data root,
  since GetTestDataDirectory() depends on gmock, which Impala's
  toolchain lacks.
- util/curl_util.{cc,h}: verify JWKS URL server TLS certs by default
  and support a configurable CA bundle (IMPALA-11922).
- util/debug/unwind_safeness.cc: tolerate missing dlopen/dlclose
  symbols under IMPALA_SHARED_LIBRARY builds (IMPALA-11640/11641).
- util/web_callback_registry.h: source_socket/source_user fields used
  by the webserver (IMPALA-9182, IMPALA-10779).
- rpc/transfer.cc: hide --rpc_max_message_size from --help.

New fixes:

- be/src/kudu/util/CMakeLists.txt: fill in the kudu-util-proto-deps
  wiring and mini_prometheus/protoc-gen-insertions/kudu_test_util fixes
  missed in the previous commit, and skip the new mini_prometheus
  symlink step, which Impala's build tree does not support.
- be/src/gutil/endian.h: add FromHost128/ToHost128 (with a gbswap_128
  helper), matching upstream kudu/gutil/endian.h, needed by the new
  IPv6 CIDR support in kudu/util/net/net_util.cc. gutil itself is
  otherwise out of scope for this rebase.
- kudu/util/net/net_util.cc: avoid -Werror=return-type on a LOG(FATAL)
  default case.
- kudu/rpc/service_queue.h: LifoServiceQueue::estimated_queue_length()/
  estimated_idle_worker_count() became private upstream; friend
  impala::ImpalaServicePool, which reports them as metrics.
- kudu/security/gssapi.cc, common/global-flags.cc: Kudu's init.cc now
  natively defines --spnego_keytab_file (IMPALA-12318 was merged
  upstream); stop redefining it in Impala and just declare it where
  used, to fix a duplicate-definition link error.
- be/src/rpc/impala-service-pool.cc: LifoServiceQueue::Put() reverted
  from std::optional<InboundCall*>* to a plain InboundCall** out-param
  upstream; update the caller to match.
- be/src/runtime/io/data-cache.cc: kudu::shared_lock was a
  pre-C++17 shim that upstream removed; use std::shared_lock instead.
- be/src/util/webserver.cc: handle new HttpStatusCode enumerators
  (Created, NoContent, Forbidden, MethodNotAllowed, GatewayTimeout).

The Kudu rebase changed kudu::logging::LogThrottler from an
implicitly-trivial destructor to one defined out-of-line in
kudu/util/logging.cc. That gave any KLOG_EVERY_N_SECS() call site a
real link-time dependency on kudu_util, which we avoid to minimize the
size of impala-profile-tool. Replace it with a local implementation.

Updates tests for changed error text.

Caps eager reservation in LifoServiceQueue as DataStreamService,
ControlService, AdmissionControlService all initialize with
max_queue_size_ = INT32_MAX.

Assisted-by: Claude Sonnet 5 (GitHub Copilot)
Change-Id: I2aba8fb89f13aa14d7c1a7b800b9aeee24387041
---
M be/src/common/global-flags.cc
M be/src/exec/kudu/kudu-scanner.cc
M be/src/gutil/endian.h
M be/src/kudu/rpc/CMakeLists.txt
M be/src/kudu/rpc/service_queue.cc
M be/src/kudu/rpc/service_queue.h
M be/src/kudu/rpc/transfer.cc
M be/src/kudu/security/CMakeLists.txt
M be/src/kudu/security/init.cc
M be/src/kudu/security/test/mini_kdc.cc
M be/src/kudu/util/CMakeLists.txt
M be/src/kudu/util/curl_util.cc
M be/src/kudu/util/curl_util.h
M be/src/kudu/util/debug/unwind_safeness.cc
M be/src/kudu/util/flags.cc
M be/src/kudu/util/logging.cc
M be/src/kudu/util/net/net_util.cc
M be/src/kudu/util/web_callback_registry.h
M be/src/rpc/authentication-test.cc
M be/src/rpc/hs2-http-test.cc
M be/src/rpc/impala-service-pool.cc
M be/src/rpc/rpc-mgr-kerberized-test.cc
M be/src/rpc/rpc-mgr-test.h
M be/src/rpc/rpc-mgr.cc
M be/src/runtime/io/data-cache.cc
M be/src/runtime/tuple-cache-mgr-test.cc
M be/src/util/bloom-filter.cc
M be/src/util/filesystem-util.cc
M be/src/util/runtime-profile.cc
M be/src/util/webserver-test.cc
M be/src/util/webserver.cc
M tests/custom_cluster/test_restart_services.py
32 files changed, 311 insertions(+), 116 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/38/24938/4
--
To view, visit https://gerrit.cloudera.org/24938
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I2aba8fb89f13aa14d7c1a7b800b9aeee24387041
Gerrit-Change-Number: 24938
Gerrit-PatchSet: 4
Gerrit-Owner: Michael Smith <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>

Reply via email to