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

The Jdbc-connector's 'lookup.max-retries' option implementation is different from the meaning

    XMLWordPrintableJSON

Details

    Description

       

      The code of 'lookup.max-retries' option :

      for (int retry = 1; retry <= maxRetryTimes; retry++) {
            statement.clearParameters();
            .....
      }  
      

      From the code, If this option is set to 0, the JDBC query will not be executed.

       

      From documents,  the max retry times if lookup database failed. [1]

      When set to 0, there is a query, but no retry.

       

      So,the code of 'lookup.max-retries' option should be:

      for (int retry = 0; retry <= maxRetryTimes; retry++) {
            statement.clearParameters();
            .....
      }  
      

       

       

      [1] https://ci.apache.org/projects/flink/flink-docs-release-1.11/dev/table/connectors/jdbc.html#lookup-max-retries

      Attachments

        Issue Links

          Activity

            People

              caozhen1937 CaoZhen
              caozhen1937 CaoZhen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: