Zakelly commented on code in PR #25792:
URL: https://github.com/apache/flink/pull/25792#discussion_r1883417520


##########
flink-runtime/src/test/java/org/apache/flink/streaming/util/TwoInputStreamOperatorTestHarness.java:
##########
@@ -51,20 +56,20 @@ public TwoInputStreamOperatorTestHarness(
         super(operator, maxParallelism, numSubtasks, subtaskIndex);
 
         this.twoInputOperator = operator;
+        processor1 = 
RecordProcessorUtils.getRecordProcessor1(twoInputOperator);
+        processor2 = 
RecordProcessorUtils.getRecordProcessor2(twoInputOperator);
     }
 
     public void processElement1(StreamRecord<IN1> element) throws Exception {
-        twoInputOperator.setKeyContextElement1(element);
-        twoInputOperator.processElement1(element);
+        processor1.accept(element);

Review Comment:
   I reverted the last commit, since every test is not properly consider & 
handle the threads relation.
   
   We will have a new operator test harness for async state processing.



-- 
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]

Reply via email to