Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-10740 FLIP-27: Refactor Source Interface
  3. FLINK-17898

Remove Exceptions from signatures of SourceOutput methods

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 1.11.0
    • API / DataStream
    • None

    Description

      The collect(...) methods in SourceOutput currently declare that they can trow Exception.
      That was originally introduced, because it can be the case when pushing records into the chain.

      However, one can argue that the Source Reader that calls these methods is in no way supposed to handle these exceptions, because they come from downstream operator failures. Because of that, we should go for unchecked exceptions and handle downstream exceptions via ExceptionInChainedOperatorException.

      Attachments

        Activity

          People

            sewen Stephan Ewen
            sewen Stephan Ewen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: