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

Improve default flush strategy for JDBC sink to make it work out-of-box

    XMLWordPrintableJSON

Details

    Description

      Currently, old JDBC sink provides 2 flush options:

      'connector.write.flush.max-rows' = '5000', -- default is 5000
      'connector.write.flush.interval' = '2s', -- no default value
      

      That means if flush interval is not set, the buffered output rows may not be flushed to database for a long time. That is a surprising behavior because no results are outputed by default.

      So we propose to have a default flush '1s' interval and '100' rows for JDBC sink flush. This only applies to new JDBC sink options:

      'sink.buffer-flush.max-rows' = '100'
      'sink.buffer-flush.interval' = '1s'
      

      Attachments

        Issue Links

          Activity

            People

              jark Jark Wu
              jark Jark Wu
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: