Rui Fan created FLINK-40523:
-------------------------------
Summary: NetworkActionsLogger.tracePersist unconditionally builds
the buffer debug string
Key: FLINK-40523
URL: https://issues.apache.org/jira/browse/FLINK-40523
Project: Flink
Issue Type: Sub-task
Components: Runtime / Checkpointing
Reporter: Rui Fan
Assignee: Rui Fan
`tracePersist(Buffer)` evaluates `buffer.toDebugString(INCLUDE_HASH)` as a call
argument, outside the `isTraceEnabled` guard, so every persisted in-flight
buffer pays a full copy + hash + allocation even when TRACE is off [1]. Fix:
guard the conversion, like the other `tracePersist`/`traceRecover` overloads
already do [2].
[1]
[https://github.com/apache/flink/blob/master/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/logger/NetworkActionsLogger.java#L99-L102]
[2]
[https://github.com/apache/flink/blob/master/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/logger/NetworkActionsLogger.java#L104-L108]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)