deniskuzZ commented on code in PR #6773:
URL: https://github.com/apache/hive/pull/6773#discussion_r4036795365
##########
packaging/src/kubernetes/src/java/org/apache/hive/kubernetes/operator/dependent/HiveDependentResource.java:
##########
@@ -164,6 +165,15 @@ protected R handleCreate(R desired, P primary, Context<P>
context) {
*/
protected Integer resolveReplicaCount(P primary, Context<P> context,
AutoscalingSpec autoscaling, int staticReplicas, int initialReplicas) {
+ Optional<R> existing = getSecondaryResource(primary, context);
+ Integer resolved = computeReplicaCount(primary, existing, autoscaling,
+ staticReplicas, initialReplicas);
+ logReplicaChange(primary, existing, resolved);
Review Comment:
do we log even when existing is empty? log on boostrap, first creation ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]