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

[Enhancement] Change fe-core compile source/target to 17 #53617

Merged

Conversation

gengjun-git
Copy link
Contributor

@gengjun-git gengjun-git commented Dec 5, 2024

Why I'm doing:

What I'm doing:

  1. Change fe-core source/target version to 17, and the others(spark-dpp, hive-udf) still use 8.
  2. Copy UnmodifiableCollectionsSerializer.java to our repository to fix compilable issue:
    Unable to make field final java.util.Collection java.util.Collections$UnmodifiableCollection.c accessible: module java.base does not "opens java.util" to unnamed module @61322f9d
    Refer to Compatibility with JDK 17 magro/kryo-serializers#131
  3. Upgrade jacoco to 0.8.8
  4. For the arrow flight server, users should add --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED to JAVA_OPTS
    Refer to https://arrow.apache.org/docs/java/install.html
  5. Fix some UT

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Does this PR entail a change in behavior?

  • Yes, this PR will result in a change in behavior.
  • No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

  • Interface/UI changes: syntax, type conversion, expression evaluation, display information
  • Parameter changes: default values, similar parameters but with different default values
  • Policy changes: use new policy to replace old one, functionality automatically enabled
  • Feature removed
  • Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr needs user documentation (for new or modified features or behaviors)
    • I have added documentation for my new feature or new function
  • This is a backport pr

Bugfix cherry-pick branch check:

  • I have checked the version labels which the pr will be auto-backported to the target branch
    • 3.4
    • 3.3
    • 3.2
    • 3.1
    • 3.0

@gengjun-git
Copy link
Contributor Author

@Mergifyio rebase

Copy link
Contributor

mergify bot commented Dec 9, 2024

rebase

✅ Branch has been successfully rebased

@gengjun-git gengjun-git force-pushed the compile_fe_to_jdk_17_byte_code branch from cefd88f to 227258f Compare December 9, 2024 03:03
@gengjun-git
Copy link
Contributor Author

@Mergifyio rebase

Copy link
Contributor

mergify bot commented Dec 10, 2024

rebase

✅ Branch has been successfully rebased

@gengjun-git gengjun-git force-pushed the compile_fe_to_jdk_17_byte_code branch 2 times, most recently from 914132e to bbdad73 Compare December 11, 2024 03:23
@gengjun-git
Copy link
Contributor Author

@Mergifyio rebase

Signed-off-by: gengjun-git <[email protected]>
Signed-off-by: gengjun-git <[email protected]>
@gengjun-git gengjun-git force-pushed the compile_fe_to_jdk_17_byte_code branch from 658e404 to bec7723 Compare December 19, 2024 07:57
Copy link
Contributor

mergify bot commented Dec 19, 2024

rebase

✅ Branch has been successfully rebased

Signed-off-by: gengjun-git <[email protected]>
Signed-off-by: gengjun-git <[email protected]>
Signed-off-by: gengjun-git <[email protected]>
Signed-off-by: gengjun-git <[email protected]>
Copy link

[Java-Extensions Incremental Coverage Report]

pass : 0 / 0 (0%)

Copy link

[BE Incremental Coverage Report]

pass : 0 / 0 (0%)

Copy link

[FE Incremental Coverage Report]

pass : 0 / 0 (0%)

@gengjun-git gengjun-git enabled auto-merge (squash) December 25, 2024 02:27
@gengjun-git gengjun-git merged commit 3d0498b into StarRocks:main Dec 25, 2024
48 checks passed
@gengjun-git gengjun-git changed the title [Enhancement] Change FE compile source/target to 17 [Enhancement] Change fe-core compile source/target to 17 Dec 25, 2024
maggie-zhu pushed a commit to maggie-zhu/starrocks that referenced this pull request Jan 6, 2025
1. Copy UnmodifiableCollectionsSerializer.java to our repository to fix compilable issue:
`Unable to make field final java.util.Collection java.util.Collections$UnmodifiableCollection.c accessible: module java.base does not "opens java.util" to unnamed module @61322f9d `
  Refer to magro/kryo-serializers#131
2. Upgrade jacoco to 0.8.8
3. For the arrow flight server, users should add `--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED` to JAVA_OPTS 
  Refer to https://arrow.apache.org/docs/java/install.html
4. Fix some UT

Signed-off-by: gengjun-git <[email protected]>
@zhaohehuhu
Copy link
Contributor

UnmodifiableCollectionsSerialize is also used by IcebergMetadataScanner, so I guess same compilable issue may occur there.

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.

4 participants