Jiabao-Sun commented on code in PR #23233:
URL: https://github.com/apache/flink/pull/23233#discussion_r1306477513


##########
flink-runtime/src/test/java/org/apache/flink/runtime/operators/drivers/GroupReduceDriverTest.java:
##########
@@ -235,22 +237,16 @@ public void 
testAllReduceDriverIncorrectlyAccumulatingMutable() {
             Object[] res = result.getList().toArray();
             Object[] expected = 
DriverTestData.createReduceMutableDataGroupedResult().toArray();
 
-            try {
-                DriverTestData.compareTupleArrays(expected, res);
-                Assert.fail(
-                        "Accumulationg mutable objects is expected to result 
in incorrect values.");
-            } catch (AssertionError e) {
-                // expected
-            }
+            DriverTestData.compareTupleArrays(expected, res);

Review Comment:
   Hi @1996fanrui, I know what's your concern. 
   This makes sense only if this test assert that res is not equal to expected.
   From my point of view, the old code has something wrong because this test 
case would not fail even if they don't meet expectations.
   
   For these reasons, I suggest reverting the changes and opening a new issue 
to confirm it.
   WDT?
   



-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to