Hello Arnab Karmakar, Aleksandr Efimov, Impala Public Jenkins,

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

    https://gerrit.cloudera.org/25134

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

Change subject: IMPALA-15551: Support TLS in HBO RedisCacheBackend
......................................................................

IMPALA-15551: Support TLS in HBO RedisCacheBackend

Impala can store HBO (history-based optimization) stats in a distributed
Redis/Valkey cache via --hbo_cache_backend=redis, implemented by
RedisCacheBackend. Currently it has no TLS support. When configured with
a TLS-enabled Redis/Valkey cache, HBO just silently never cached and the
coordinator started normally.

This patch adds TLS support in RedisCacheBackend and changes the startup
behavior to fail when Redis/Valkey is unreachable or misconfigured.

The following flags are added:
- hbo_cache_redis_enable_ssl: true/false
- hbo_cache_redis_ssl_truststore_location: Truststore with the CA(s)
  that signed the server cert. Empty (default) means use the JVM default
  truststore.
- hbo_cache_redis_ssl_truststore_password_cmd: Unix command whose stdout
  is the truststore password. Empty (default) means the truststore has
  no password.
- hbo_cache_redis_ssl_truststore_type: JKS (default) or PKCS12

These are used to create the JedisPool to enable TLS support.

To verify the connectivity with the HBO cache backend, this patch adds
a verifyConnectivity() to the CacheBackend interface. It's used via JNI
in ImpalaServer::ImpalaServer() when the coordinator starts. Any error
aborts the startup when --abort_on_config_error is true (default).

Testing
- Added FE unit tests and custom-cluster tests
- The custom-cluster tests reuse the existing certificates described in
  be/src/testutil/certificates-info.txt and launch a valkey container
  with TLS enabled using a dedicated port.
- Existing tests now pass --abort_on_config_error=false to keep testing
  fail-soft.

Assisted-by: Opus 4.8 (Claude Code)
Change-Id: I9d9008059b0e6b5852ce047eee83d64bbfc63d2c
---
M be/src/service/frontend.cc
M be/src/service/frontend.h
M be/src/service/impala-server.cc
M be/src/util/backend-gflag-util.cc
M common/thrift/BackendGflags.thrift
M fe/src/main/java/org/apache/impala/service/BackendConfig.java
M fe/src/main/java/org/apache/impala/service/CacheBackend.java
M fe/src/main/java/org/apache/impala/service/CacheBackendFactory.java
M fe/src/main/java/org/apache/impala/service/HistoricalStats.java
M fe/src/main/java/org/apache/impala/service/InMemoryCacheBackend.java
M fe/src/main/java/org/apache/impala/service/JniFrontend.java
M fe/src/main/java/org/apache/impala/service/RedisCacheBackend.java
M fe/src/test/java/org/apache/impala/service/RedisCacheBackendTest.java
M testdata/bin/run-valkey.sh
M tests/common/custom_cluster_test_suite.py
M tests/common/valkey_cluster.py
M tests/custom_cluster/test_hbo_redis.py
17 files changed, 779 insertions(+), 60 deletions(-)


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I9d9008059b0e6b5852ce047eee83d64bbfc63d2c
Gerrit-Change-Number: 25134
Gerrit-PatchSet: 4
Gerrit-Owner: Quanlong Huang <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Arnab Karmakar <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>

Reply via email to