Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flink: Upgrade Flink version 1.19.0 => 1.19.1 to mitigate NoSuchMethodError on commit #12021

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

mxm
Copy link
Contributor

@mxm mxm commented Jan 21, 2025

If users run a Flink job on Flink 1.19.1 with IcebergSink compiled against 1.19.0, as is the case prior this change, they will get the following exception on commit:

java.lang.NoSuchMethodError: 'void org.apache.flink.streaming.api.connector.sink2.CommittableSummary.<init>(int, int, java.lang.Long, int, int, int)'
    at org.apache.iceberg.flink.sink.IcebergWriteAggregator.prepareSnapshotPreBarrier(IcebergWriteAggregator.java:91)

The reason is that from 1.19.0 to 1.19.1, Flink changed the signature of the constructor for CommittableSummary from

CommittableSummary(int, int, Long, int, int, int)

to

CommittableSummary(int, int, long, int, int, int)

Note the Long to long change. Since Flink 1.19.1 is the latest supported version and 1.19.0 is no longer supported, it is fair to upgrade.

If users run a Flink job on Flink 1.19.1 with IcebergSink compiled against
1.19.0, as is the case prior this change, they will get the following exception
on commit:

```
java.lang.NoSuchMethodError: 'void org.apache.flink.streaming.api.connector.sink2.CommittableSummary.<init>(int, int, java.lang.Long, int, int, int)'
    at org.apache.iceberg.flink.sink.IcebergWriteAggregator.prepareSnapshotPreBarrier(IcebergWriteAggregator.java:91)
```

The reason is that from 1.19.0 to 1.19.1, Flink changed the signature of the
constructor for `CommittableSummary` from

```
CommittableSummary(int, int, Long, int, int, int)
```
to
```
CommittableSummary(int, int, long, int, int, int)
```

Note the `Long` to `long` change. Since Flink 1.19.1 is the latest supported
version and 1.19.0 is no longer supported, it is fair to upgrade.
Copy link
Contributor

@pvary pvary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 pending tests

@pvary pvary merged commit 8dee55d into apache:main Jan 21, 2025
46 checks passed
@pvary
Copy link
Contributor

pvary commented Jan 21, 2025

Merged to main.
Thanks for the PR @mxm!

@mxm mxm deleted the flink-1.19 branch January 21, 2025 17:01
@mxm mxm restored the flink-1.19 branch January 21, 2025 17:01
@mxm mxm deleted the flink-1.19 branch January 21, 2025 17:01
@mxm
Copy link
Contributor Author

mxm commented Jan 21, 2025

Thanks for the quick review / merge!

@mxm
Copy link
Contributor Author

mxm commented Jan 23, 2025

CC @stevenzwu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants