Copilot commented on code in PR #1194:
URL:
https://github.com/apache/flink-kubernetes-operator/pull/1194#discussion_r4677637157
##########
flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/config/FlinkOperatorConfiguration.java:
##########
@@ -210,7 +210,8 @@ public static FlinkOperatorConfiguration
fromConfiguration(Configuration operato
operatorConfig.get(KubernetesOperatorConfigOptions.OPERATOR_EVENT_EXCEPTION_LIMIT);
int reportedExceptionEventsMaxStackTraceLength =
operatorConfig.get(
-
KubernetesOperatorConfigOptions.OPERATOR_EVENT_EXCEPTION_STACKTRACE_LINES);
+ KubernetesOperatorConfigOptions
+
.OPERATOR_EVENT_EXCEPTION_STACKTRACE_MAX_LENGTH);
Review Comment:
Please validate that the new length limit is nonnegative. With `-1`, any
nonblank stack trace causes `StringBuilder.append(stacktrace, 0, -1)` to throw;
the observer logs a warning but emits no exception event and does not advance
the exception timestamp, so it retries the same history on subsequent
reconciliations. Reject negative values when constructing the operator
configuration.
--
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]