Tao-Zhang9876 opened a new pull request, #23699:
URL: https://github.com/apache/flink/pull/23699

   Due to the Watermark calculation method :
   
   ```
   public void onPeriodicEmit(WatermarkOutput output) {
               output.emitWatermark(new Watermark(maxTs - delayTime - 1L));
           }
   
   ```
   
   When data with an event time of 1000ms enters, the Watermark will be pushed 
to 999.
   At this point, data with an event time of 999ms enters.Will be judged as non 
late data.
   
   ```
   private boolean isLate(long timestamp) {
       long currentWatermark = internalTimerService.currentWatermark();
       return timestamp < currentWatermark;
   } 
   ```
   
   It is necessary to modify the judgment criteria
   
   fix:
   ```
   private boolean isLate(long timestamp) {
       long currentWatermark = internalTimerService.currentWatermark();
       return timestamp < currentWatermark;
   } 
   
   ```


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