File tree 5 files changed +23
-0
lines changed
5 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 6
6
7
7
- The lifetime of auto generated TLS certificates is now configurable with the role and roleGroup
8
8
config property ` requestedSecretLifetime ` . This helps reducing frequent Pod restarts ([ #598 ] ).
9
+ - Run a ` containerdebug ` process in the background of each HBase container to collect debugging information ([ #605 ] ).
9
10
10
11
### Fixed
11
12
15
16
16
17
[ #594 ] : https://github.com/stackabletech/hbase-operator/pull/594
17
18
[ #598 ] : https://github.com/stackabletech/hbase-operator/pull/598
19
+ [ #605 ] : https://github.com/stackabletech/hbase-operator/pull/605
18
20
19
21
## [ 24.11.0] - 2024-11-18
20
22
Original file line number Diff line number Diff line change @@ -881,6 +881,7 @@ fn build_rolegroup_statefulset(
881
881
{COMMON_BASH_TRAP_FUNCTIONS}
882
882
{remove_vector_shutdown_file_command}
883
883
prepare_signal_handlers
884
+ containerdebug --output={STACKABLE_LOG_DIR}/containerdebug-state.json --loop &
884
885
bin/hbase {hbase_role_name_in_command} start &
885
886
wait_for_termination $!
886
887
{create_vector_shutdown_file_command}
@@ -893,6 +894,11 @@ fn build_rolegroup_statefulset(
893
894
create_vector_shutdown_file_command( STACKABLE_LOG_DIR ) ,
894
895
} ] )
895
896
. add_env_vars ( merged_env)
897
+ // Needed for the `containerdebug` process to log it's tracing information to.
898
+ . add_env_var (
899
+ "CONTAINERDEBUG_LOG_DIRECTORY" ,
900
+ format ! ( "{STACKABLE_LOG_DIR}/containerdebug" ) ,
901
+ )
896
902
. add_volume_mount ( "hbase-config" , HBASE_CONFIG_TMP_DIR )
897
903
. context ( AddVolumeMountSnafu ) ?
898
904
. add_volume_mount ( "hdfs-discovery" , HDFS_DISCOVERY_TMP_DIR )
Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ commands:
39
39
config:
40
40
logging:
41
41
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
42
+ resources:
43
+ memory:
44
+ limit: 1536Mi
42
45
roleGroups:
43
46
default:
44
47
replicas: 2
Original file line number Diff line number Diff line change 45
45
config:
46
46
logging:
47
47
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
48
+ resources:
49
+ memory:
50
+ limit: 1Gi
48
51
roleGroups:
49
52
default:
50
53
configOverrides:
Original file line number Diff line number Diff line change
1
+ ---
2
+ # This test checks if the containerdebug-state.json file is present and valid
3
+ apiVersion : kuttl.dev/v1beta1
4
+ kind : TestAssert
5
+ timeout : 600
6
+ commands :
7
+ - script : kubectl exec -n $NAMESPACE --container hbase test-hbase-master-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status '"valif JSON"'
8
+ - script : kubectl exec -n $NAMESPACE --container hbase test-hbase-regionserver-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status '"valif JSON"'
9
+ - script : kubectl exec -n $NAMESPACE --container hbase test-hbase-restserver-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status '"valif JSON"'
You can’t perform that action at this time.
0 commit comments