You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Tzu-Li (Gordon) Tai (JIRA)" <ji...@apache.org> on 2017/03/29 06:49:41 UTC

[jira] [Comment Edited] (FLINK-6211) Validation error in Kinesis Consumer when using AT_TIMESTAMP as start position

    [ https://issues.apache.org/jira/browse/FLINK-6211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15946619#comment-15946619 ] 

Tzu-Li (Gordon) Tai edited comment on FLINK-6211 at 3/29/17 6:48 AM:
---------------------------------------------------------------------

Thanks for looking into this. I would make this a blocker for 1.2.1, as it was reported by a user and basically makes timestamp start positions with the Kinesis consumer unusable.


was (Author: tzulitai):
Thanks for looking into this. I would make this a blocker for 1.2.1, as it basically makes timestamp start positions with the Kinesis consumer unusable.

> Validation error in Kinesis Consumer when using AT_TIMESTAMP as start position
> ------------------------------------------------------------------------------
>
>                 Key: FLINK-6211
>                 URL: https://issues.apache.org/jira/browse/FLINK-6211
>             Project: Flink
>          Issue Type: Bug
>          Components: Kinesis Connector
>            Reporter: Wei-Che Wei
>            Priority: Blocker
>             Fix For: 1.3.0, 1.2.1
>
>
> {code}
> 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); }
>         }
>     }
> }
> {code}
> This validation function will always fail regardless of either string format or double type.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)