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

Validation error in Kinesis Consumer when using AT_TIMESTAMP as start position

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: Kinesis Connector
    • Labels:
      None

      Description

      private static void validateOptionalDateProperty(Properties config, String key, String message) {
          if (config.containsKey(key)) {
              try {
                  initTimestampDateFormat.parse(config.getProperty(key)); —
                  double value = Double.parseDouble(config.getProperty(key)); —
                  if (value < 0) { throw new NumberFormatException(); }
              } catch (ParseException | NumberFormatException e){
                  throw new IllegalArgumentException(message); }
              }
          }
      }
      

      This validation function will always fail regardless of either string format or double type.

        Attachments

          Activity

            People

            • Assignee:
              tonywei Wei-Che Wei
              Reporter:
              tonywei Wei-Che Wei
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: