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

[fix][build] Client modules should be built with Java 8 #19991

Merged
merged 3 commits into from Apr 3, 2023

Conversation

tisonkun
Copy link
Member

@tisonkun tisonkun commented Apr 1, 2023

This fixes #19982.

Motivation

Client modules are promised to be compatible with Java 8.

Modifications

Add --releaase 8 for these two remaining client modules.

Verifying this change

Locally tested.

Before:

file target/classes/org/apache/pulsar/client/impl/auth/AuthenticationAthenz.class
target/classes/org/apache/pulsar/client/impl/auth/AuthenticationAthenz.class: compiled Java class data, version 61.0

After:

file target/classes/org/apache/pulsar/client/impl/auth/AuthenticationAthenz.class 
target/classes/org/apache/pulsar/client/impl/auth/AuthenticationAthenz.class: compiled Java class data, version 52.0 (Java 1.8)

I don't know if we can add a CI step to ensure it.

Add enforce plugin to prevent regressions.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

Signed-off-by: tison <wander4096@gmail.com>
pom.xml Outdated Show resolved Hide resolved
Copy link
Contributor

@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.

The broker modules should be compiled for jdk17

I agree that client must stay on 8.

@tisonkun
Copy link
Member Author

tisonkun commented Apr 1, 2023

Hi @lhotari & @eolivelli!

The changeset for updating the broker compiler version is for profile integration-test-java8. But I agree I can revert the change as it won't hurt.

…se blank for profile integration-test-java8

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

tisonkun commented Apr 1, 2023

Updated. Please give another look.

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

@lhotari lhotari left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov-commenter
Copy link

Codecov Report

Merging #19991 (29f99a8) into master (68c10ee) will decrease coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #19991      +/-   ##
============================================
- Coverage     72.89%   72.82%   -0.08%     
+ Complexity    31619    31592      -27     
============================================
  Files          1861     1861              
  Lines        137356   137362       +6     
  Branches      15117    15118       +1     
============================================
- Hits         100131   100039      -92     
- Misses        29271    29366      +95     
- Partials       7954     7957       +3     
Flag Coverage Δ
inttests 24.44% <ø> (+<0.01%) ⬆️
systests 25.00% <ø> (-0.04%) ⬇️
unittests 72.11% <ø> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 76 files with indirect coverage changes

@mattisonchao mattisonchao added the release/blocker Indicate the PR or issue that should block the release until it gets resolved label Apr 3, 2023
Copy link
Contributor

@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.

Perfect

+1

@eolivelli eolivelli merged commit 5ef3a21 into apache:master Apr 3, 2023
46 of 47 checks passed
@tisonkun tisonkun deleted the admin-java8 branch April 3, 2023 08:01
@tisonkun
Copy link
Member Author

tisonkun commented Apr 3, 2023

Hi @Technoboy-! This can be a release blocker to 2.11.1. Since you're the RM for this release, I'd like to let you know this patch and ask if you can cherry-pick it to branch-2.11 and include it in 2.11.1.

@Technoboy- Technoboy- added cherry-picked/branch-2.11 and removed release/blocker Indicate the PR or issue that should block the release until it gets resolved labels Apr 3, 2023
@Technoboy-
Copy link
Contributor

Hi @Technoboy-! This can be a release blocker to 2.11.1. Since you're the RM for this release, I'd like to let you know this patch and ask if you can cherry-pick it to branch-2.11 and include it in 2.11.1.

Thanks, cherry-picked to branch-2.11.

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.

[Bug] Pulsar2-11.0 pulsar-client AuthenticationSasl.class can not be used in java8
8 participants