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

Validation error in Kinesis Consumer when using AT_TIMESTAMP as start position

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 1.3.0
    • Connectors / Kinesis
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: