Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-7245

Enhance the operators to support holding back watermarks

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Implemented
    • None
    • 1.4.0
    • API / DataStream
    • None

    Description

      Currently the watermarks are applied and emitted by the AbstractStreamOperator instantly.

      public void processWatermark(Watermark mark) throws Exception {
      	if (timeServiceManager != null) {
      		timeServiceManager.advanceWatermark(mark);
      	}
      	output.emitWatermark(mark);
      }
      

      Some calculation results (with timestamp fields) triggered by these watermarks (e.g., join or aggregate results) may be regarded as delayed by the downstream operators since their timestamps must be less than or equal to the corresponding triggers.

      This issue aims to add another "working mode", which supports holding back watermarks, to current operators. These watermarks should be blocked and stored by the operators until all the corresponding new generated results are emitted.

      Attachments

        Issue Links

          Activity

            People

              xccui Xingcan Cui
              xccui Xingcan Cui
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: