Skip to content

HIVE-30033: Hive K8s operator: log replica changes - #6773

Open
abstractdog wants to merge 1 commit into
apache:masterfrom
abstractdog:HIVE-30033
Open

HIVE-30033: Hive K8s operator: log replica changes#6773
abstractdog wants to merge 1 commit into
apache:masterfrom
abstractdog:HIVE-30033

Conversation

@abstractdog

@abstractdog abstractdog commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Log an INFO line in the reconciler whenever a HiveCluster component is created or scaled to a different replica count. Covers LLAP, TezAM, HiveServer2 and Metastore.

Why are the changes needed?

Scales driven by an SSA on the CR (helm upgrade, kubectl edit, a tool changing .spec.*.replicas) reached the workload silently — only the autoscaler path logged. On a scale that didn't converge you couldn't tell from the operator log whether the reconciler had seen the change at all.

Does this PR introduce any user-facing change?

Operator log only. Example:
INFO HiveDependentResource: Scaling hiveserver2 lbodor-perf/hive-hiveserver2: 2 -> 1 replicas
INFO HiveDependentResource: Scaling metastore lbodor-perf/hive-metastore: 2 -> 1 replicas
INFO HiveClusterReconciler: Scaling llap lbodor-perf/hive-llap0: 12 -> 15 replicas
Silence still means "no change" — the log fires only on a real delta.

How was this patch tested?

Manually on an EKS cluster: scaled HS2, Metastore and LLAP up and down; confirmed the "Scaling …: A -> B replicas" line on each real change and no line when the count already matched.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants