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-32612] Upgrade Pulsar version to 3.0.0 #54

Merged
merged 22 commits into from
Jul 18, 2023

Conversation

tisonkun
Copy link
Member

@tisonkun tisonkun commented Jul 12, 2023

Purpose of the change

Upgrade Pulsar client and admin version to 3.0.0 for the next development cycle.

Verifying this change

Existing CI workflows should pass.

Significant changes

  • Dependencies have been added or upgraded - Pulsar version to 3.0.0
  • Public API has been changed (Public API is any class annotated with @Public(Evolving))
  • Serializers have been changed
  • New feature has been introduced
    • If yes, how is this documented? (not applicable / docs / JavaDocs / not documented)

Signed-off-by: tison <wander4096@gmail.com>
@tisonkun
Copy link
Member Author

@zentol can we disable false positive for LicenseChecker?

https://github.com/apache/flink-connector-pulsar/actions/runs/5531507804/jobs/10092293645

12:59:18,280 [org.apache.flink.tools.ci.licensecheck.LicenseChecker.main()] WARN  org.apache.flink.tools.ci.licensecheck.LicenseChecker        [] - THIS UTILITY IS ONLY CHECKING FOR COMMON LICENSING MISTAKES. A MANUAL CHECK OF THE NOTICE FILES, DEPLOYED ARTIFACTS, ETC. IS STILL NEEDED!
13:02:21,507 [org.apache.flink.tools.ci.licensecheck.LicenseChecker.main()] INFO  org.apache.flink.tools.ci.licensecheck.NoticeFileChecker     [] - Extracted 3 modules that were deployed and 4 modules which bundle dependencies with a total of 4 dependencies
13:02:21,583 [org.apache.flink.tools.ci.licensecheck.LicenseChecker.main()] INFO  org.apache.flink.tools.ci.licensecheck.NoticeFileChecker     [] - Found 1 NOTICE files to check
13:02:21,592 [org.apache.flink.tools.ci.licensecheck.LicenseChecker.main()] INFO  org.apache.flink.tools.ci.licensecheck.JarFileChecker        [] - Checking directory /tmp/flink-validation-deployment with a total of 4 jar files.
13:02:21,905 [org.apache.flink.tools.ci.licensecheck.LicenseChecker.main()] ERROR org.apache.flink.tools.ci.licensecheck.JarFileChecker        [] - File '/org/apache/pulsar/shade/javax/xml/bind/Messages.properties' in jar '/tmp/flink-validation-deployment/org/apache/flink/flink-sql-connector-pulsar/4.0-SNAPSHOT/flink-sql-connector-pulsar-4.0-20230712.122728-1.jar' contains match with forbidden regex 'gnu ?\R?[\s/#]*general ?\R?[\s/#]*public ?\R?[\s/#]*license'.
13:02:21,907 [org.apache.flink.tools.ci.licensecheck.LicenseChecker.main()] ERROR org.apache.flink.tools.ci.licensecheck.JarFileChecker        [] - File '/org/apache/pulsar/shade/javax/xml/bind/helpers/Messages.properties' in jar '/tmp/flink-validation-deployment/org/apache/flink/flink-sql-connector-pulsar/4.0-SNAPSHOT/flink-sql-connector-pulsar-4.0-20230712.122728-1.jar' contains match with forbidden regex 'gnu ?\R?[\s/#]*general ?\R?[\s/#]*public ?\R?[\s/#]*license'.
13:02:21,909 [org.apache.flink.tools.ci.licensecheck.LicenseChecker.main()] ERROR org.apache.flink.tools.ci.licensecheck.JarFileChecker        [] - File '/org/apache/pulsar/shade/javax/xml/bind/util/Messages.properties' in jar '/tmp/flink-validation-deployment/org/apache/flink/flink-sql-connector-pulsar/4.0-SNAPSHOT/flink-sql-connector-pulsar-4.0-20230712.122728-1.jar' contains match with forbidden regex 'gnu ?\R?[\s/#]*general ?\R?[\s/#]*public ?\R?[\s/#]*license'.
13:02:25,349 [org.apache.flink.tools.ci.licensecheck.LicenseChecker.main()] WARN  org.apache.flink.tools.ci.licensecheck.LicenseChecker        [] - Found a total of 3 severe license issues

@tisonkun
Copy link
Member Author

tisonkun commented Jul 12, 2023

The issued dependency should be fine like JDK as a dependency - GPL Classpath Exception

@tisonkun
Copy link
Member Author

I'll try to exclude them. But generally it's a false positive.

Signed-off-by: tison <wander4096@gmail.com>
@tisonkun
Copy link
Member Author

tisonkun commented Jul 14, 2023

The log was not found. It may have been deleted based on retention settings

@MartijnVisser @zentol how can I debug this CI failure then?

EDIT - Resolved after a retry. But the CI tests are falsy passed, maybe the ci_utils can be still improved.

Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
@zentol
Copy link
Contributor

zentol commented Jul 14, 2023

But the CI tests are falsy passe

How so?

@tisonkun
Copy link
Member Author

https://github.com/apache/flink-connector-pulsar/actions/runs/5550771150/jobs/10136213423

How so?

@zentol You're right that the sub workflow failed. Although the GitHub check suite display the overall state as passed, it should be a GitHub issue. Perhaps introduce a final required job can improve the experience, like -

https://github.com/apache/kvrocks/blob/0d2304300b494898b1626a38dfc5fbafe523b5a3/.github/workflows/kvrocks.yaml#L357-L379

Copy link

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

+1

@tisonkun tisonkun marked this pull request as draft July 14, 2023 09:29
@tisonkun
Copy link
Member Author

@eolivelli Still some loading issues. I don't know if there is some semantic changes in runtime.

Currently -

Caused by: java.lang.ClassNotFoundException: org.apache.pulsar.shade.io.netty.channel.group.ChannelMatchers

cc @syhily for advice :D

@tisonkun tisonkun force-pushed the up-pulsar branch 2 times, most recently from a3f2e9b to 4fecf48 Compare July 16, 2023 05:50
Signed-off-by: tison <wander4096@gmail.com>
@tisonkun tisonkun marked this pull request as ready for review July 16, 2023 07:42
@tisonkun
Copy link
Member Author

Luckily all tests passed now. I'll check the details on the logs.

@cbornet
Copy link
Contributor

cbornet commented Jul 16, 2023

LGTM

@tisonkun
Copy link
Member Author

Somehow waiting for apache/flink#23003.

I'd prefer to use a consistent relocate pattern.

Also will create a JIRA ticket for this patch.

Hopefully we can merge this one in days.

@tisonkun
Copy link
Member Author

It seems changeing the relocate pattern doesn't fix the issue really. I'll try to revert the changes to see if it's an flaky case.

tisonkun and others added 4 commits July 17, 2023 18:28
Signed-off-by: tison <wander4096@gmail.com>
…r/pulsar/source/enumerator/cursor/stop/MessageIdStopCursor.java

Co-authored-by: Yufan Sheng <syhily@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
@tisonkun tisonkun changed the title [FLINK-XXXXX] Upgrade Pulsar version to 3.0.0 [FLINK-32612] Upgrade Pulsar version to 3.0.0 Jul 17, 2023
tisonkun and others added 6 commits July 18, 2023 02:16
Thanks to Yufan!

Signed-off-by: tison <wander4096@gmail.com>
Co-authored-by: Yufan Sheng <yufan@streamnative.io>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Comment on lines +40 to +41
configuration.set(JobManagerOptions.TOTAL_PROCESS_MEMORY, MemorySize.ofMebiBytes(2560));
configuration.set(JobManagerOptions.JVM_METASPACE, MemorySize.ofMebiBytes(1024));
Copy link
Member Author

Choose a reason for hiding this comment

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

Temporarily workaround. Hopefully we locate why JM metaspace OOM. It can be related to both the size of the final JAR ball and how we load and unload the JAR ball.

Signed-off-by: tison <wander4096@gmail.com>
@tisonkun tisonkun requested a review from syhily July 18, 2023 02:56
@tisonkun
Copy link
Member Author

tisonkun commented Jul 18, 2023

The CNFE is a wanring that -

  1. Previous JM shutdown
  2. Before the next JM started, TM reported CNFE
  3. The new started JM receive CNFE from TM and logs
  4. After JM redistribute execution and jars, TM start to work again

@tisonkun
Copy link
Member Author

Pending to merge..

Other improvement will be exploring later.

Signed-off-by: tison <wander4096@gmail.com>
@tisonkun
Copy link
Member Author

Merging...

@tisonkun tisonkun merged commit 279a678 into apache:main Jul 18, 2023
@tisonkun tisonkun deleted the up-pulsar branch July 18, 2023 07:33
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.

6 participants