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

ASF subversion and git services commented on NIFI-6793:
-------------------------------------------------------

Commit 87838e6c31ed8b104f79b7c7930b110e31bf7de7 in nifi's branch 
refs/heads/master from Koji Kawamura
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=87838e6 ]

NIFI-6793 Fix NumberFormatException at CaptureChangeMySQL

This closes #3827

Signed-off-by: Mike Thomsen <[email protected]>


> CaptureChangeMySQL throws NumberFormatException when sequence id exceeds 
> maximum Integer
> ----------------------------------------------------------------------------------------
>
>                 Key: NIFI-6793
>                 URL: https://issues.apache.org/jira/browse/NIFI-6793
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Koji Kawamura
>            Assignee: Koji Kawamura
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> NumberFormatException can be thrown because the internal sequence id is 
> parsed as an integer where it should be a long.
> https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-cdc/nifi-cdc-mysql-bundle/nifi-cdc-mysql-processors/src/main/java/org/apache/nifi/cdc/mysql/processors/CaptureChangeMySQL.java#L492
> {code}
> 2019-10-14 04:45:54,727 WARN [Timer-Driven Process Thread-15] 
> o.a.n.controller.tasks.ConnectableTask Administratively Yielding 
> CaptureChangeMySQL[id=719232e6-2e6e-1d73-82b8-4f59a42c5e52] due to uncaught 
> Exception: java.lang.NumberFormatException: For input string: "2291535530"
> java.lang.NumberFormatException: For input string: "2291535530"
>         at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>         at java.lang.Integer.parseInt(Integer.java:583)
>         at java.lang.Integer.parseInt(Integer.java:615)
>         at 
> org.apache.nifi.cdc.mysql.processors.CaptureChangeMySQL.setup(CaptureChangeMySQL.java:492)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to