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

[GCP PubSub] Make checkpoint optional for preview/staging mode

    XMLWordPrintableJSON

Details

    Description

      I'm using PubSub connector with Flink sql.

      The issue that I get all the time error that PubSub required checkpoints, My question is if I/you can submit a PR that adds a property that can configure PubSub to start without checkpoints, and we can describe that it is just for preview/staging mode (interactive sql, Jupiter..)
      Other connectors support starting without checkpoints.

      What will be the impact for this change? I tried it locally and it seems to work ok. 

      That is the code that always fail the source if no checkpoint is configured, i want to add some condition here:

      if (hasNoCheckpointingEnabled(getRuntimeContext())) { 
      throw new IllegalArgumentException( "The PubSubSource REQUIRES Checkpointing to be enabled and " + "the checkpointing frequency must be MUCH lower than the PubSub timeout for it to retry a message."); 
      }
       
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              brachi_packter Brachi Packter
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: