liming30 commented on a change in pull request #13109: URL: https://github.com/apache/flink/pull/13109#discussion_r477237731
########## File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/OperatorChain.java ########## @@ -409,7 +410,7 @@ public OP getHeadOperator() { if (selectors == null || selectors.isEmpty()) { // simple path, no selector necessary - if (allOutputs.size() == 1) { + if (allOutputs.size() == 1 && !(allOutputs.get(0).f0 instanceof RecordWriterOutput)) { Review comment: If we use `CountingOutput` directly, we can’t distinguish whether the record is actually sent (just like it was filtered by `OutputTag` in `sideOutput`) ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org