diff --git a/CHANGELOG.md b/CHANGELOG.md index 5858eef08..da9b9c01f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +### Added + +- hbase: `containerdebug` can be turned off with `CONTAINERDEBUG_ENABLED=false`, and its interval set with `CONTAINERDEBUG_INTERVAL` ([#1760]). + +[#1760]: https://github.com/stackabletech/docker-images/pull/1760 + ## [26.11.0] - 2026-11-20 ## [26.11.0-rc1] - 2026-11-19 diff --git a/hbase/hbase/stackable/bin/hbase-entrypoint.sh b/hbase/hbase/stackable/bin/hbase-entrypoint.sh index 44763c1e0..a5103f44d 100755 --- a/hbase/hbase/stackable/bin/hbase-entrypoint.sh +++ b/hbase/hbase/stackable/bin/hbase-entrypoint.sh @@ -5,6 +5,8 @@ # Expects the following env vars: # - RUN_REGION_MOVER: if set to true, the region mover will be run before region server shutdown # - REGION_MOVER_OPTS: additional options for the region mover +# - CONTAINERDEBUG_ENABLED: if set to false, containerdebug is not run in the background (default: true) +# - CONTAINERDEBUG_INTERVAL: the time between two containerdebug runs, e.g. 30m (default: 30m) # set -x set -euo pipefail @@ -88,7 +90,9 @@ config-utils template /stackable/conf/hbase-site.xml rm -f "${STACKABLE_LOG_DIR}/_vector/shutdown" prepare_signal_handlers -/stackable/containerdebug --output="${STACKABLE_LOG_DIR}/containerdebug-state.json" --loop & +if [ "false" != "${CONTAINERDEBUG_ENABLED:-true}" ]; then + /stackable/containerdebug --output="${STACKABLE_LOG_DIR}/containerdebug-state.json" --loop="${CONTAINERDEBUG_INTERVAL:-30m}" & +fi /stackable/hbase/bin/hbase "${HBASE_ROLE_NAME}" start & wait_for_termination $! mkdir -p "${STACKABLE_LOG_DIR}/_vector" && touch "${STACKABLE_LOG_DIR}/_vector/shutdown"