cshuo commented on code in PR #19202:
URL: https://github.com/apache/hudi/pull/19202#discussion_r3569099157


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/format/cdc/CdcIterators.java:
##########
@@ -135,14 +153,25 @@ public boolean hasNext() {
     }
 
     @Override
-    public RowData next() {
+    public synchronized RowData next() {

Review Comment:
   The exception described in the PR seems similar to the NPE here. If it's 
production code, it wouldn't encounter this issue. Is it sufficient to handle 
it in the test.
   
   
https://github.com/apache/hudi/blob/014358a3e6c8a954e3d72eeaa7033e2aa18adc43/hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/table/ITTestHoodieDataSource.java#L4155-L4163



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