GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Replace Java23 with Java24 for CI testing by normanmaurer · Pull Request #15102 · netty/netty

Conversation

@normanmaurer

@normanmaurer normanmaurer commented Apr 30, 2025

Copy link
Copy Markdown
Member

Motivation:

Java24 was released so we should test with it.

Modifications:

  • Replace Java23 for testing with Java24
  • Add profile to pom.xml

Result:

CI runs testsuite on Java24

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
franz1981
franz1981 reviewed Apr 30, 2025
View reviewed changes
Comment thread pom.xml
<testJvm />
</properties>
</profile>
<profile>

@franz1981 franz1981 Apr 30, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Don't you need on tests to add

  -Dio.netty.noUnsafe=false 
  --sun-misc-unsafe-memory-access=allow
  --add-opens=java.base/java.lang=ALL-UNNAMED

to make sure all the previously working Unsafe paths are there + running the same without any of this?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@normanmaurer normanmaurer Apr 30, 2025

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Actually I think it should be also pass without this as netty should work without unsafe

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@franz1981 franz1981 Apr 30, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This is true - I just don't remember (i should check) if we assume/want to check regressions for both (ie Unsafe + JVM args w JDK 24 + no Unsafe and no JVM settings w JDK 24) or we trust the coverage offered by < JDK 24 for such

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@normanmaurer normanmaurer May 11, 2025

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

it was actually a good thing that we did not enable Unsafe here as it uncovered multiple bugs 🥳

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
chrisvest
chrisvest reviewed May 7, 2025
View reviewed changes
Comment thread pom.xml Resolved

Uh oh!

There was an error while loading. Please reload this page.

@chrisvest

chrisvest commented May 7, 2025

Copy link
Copy Markdown
Member

This failure appear to be consistent and shows up locally as well 🤔

Error:  Tests run: 403, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 1.389 s <<< FAILURE! -- in io.netty.buffer.AdaptiveBigEndianDirectByteBufTest
Error:  io.netty.buffer.AdaptiveBigEndianDirectByteBufTest.testCopyMultipleThreads0 -- Time elapsed: 0.037 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: io.netty.buffer.AdaptivePoolingAllocator$AdaptiveByteBuf@1b3ca379<AdaptivePoolingAllocator$AdaptiveByteBuf(ridx: 0, widx: 8, cap: 8/131072)> but was: io.netty.buffer.AdaptivePoolingAllocator$AdaptiveByteBuf@6e1b6d69<AdaptivePoolingAllocator$AdaptiveByteBuf(ridx: 0, widx: 8, cap: 8/131072)>
	at io.netty.buffer.AbstractByteBufTest$31.run(AbstractByteBufTest.java:2350)
	at java.base/java.lang.Thread.run(Thread.java:1447)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chrisvest

chrisvest commented May 7, 2025

Copy link
Copy Markdown
Member

I'll put up a PR for the test failure soon.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chrisvest

chrisvest commented May 7, 2025

Copy link
Copy Markdown
Member

This fixes the test failure: #15131

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chrisvest
chrisvest force-pushed the jdk24 branch from 22b4cd1 to 95bf359 Compare May 7, 2025 20:41
@chrisvest

chrisvest commented May 7, 2025

Copy link
Copy Markdown
Member

Rebased this. Now we see what the build says.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chrisvest

chrisvest commented May 8, 2025

Copy link
Copy Markdown
Member

Build says we got more problems with buffers, but this time reported by the codec-compression module…

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer

normanmaurer commented May 8, 2025

Copy link
Copy Markdown
Member Author

@chrisvest should be fixed and was caused by a bug in one of our dependencies.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer

normanmaurer commented May 8, 2025

Copy link
Copy Markdown
Member Author

Ok next test failure:

[INFO] 
[INFO] Results:
[INFO] 
Error:  Errors: 
Error:    CertificateBuilderTest.createMlKemCerts:123 ? IllegalArgument Cannot get algorithm name for ML-DSA key
Error:    CertificateBuilderTest.createMlKemCerts:123 ? IllegalArgument Cannot get algorithm name for ML-DSA key
Error:    CertificateBuilderTest.createMlKemCerts:123 ? IllegalArgument Cannot get algorithm name for ML-DSA key
[INFO] 
Error:  Tests run: 42, Failures: 0, Errors: 3, Skipped: 7
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer

normanmaurer commented May 8, 2025

Copy link
Copy Markdown
Member Author
java.lang.IllegalArgumentException: Cannot get algorithm name for ML-DSA key

	at io.netty.pkitesting.CertificateBuilder.preferredSignatureAlgorithm(CertificateBuilder.java:771)
	at io.netty.pkitesting.CertificateBuilder.buildIssuedBy(CertificateBuilder.java:687)
	at io.netty.pkitesting.CertificateBuilderTest.createMlKemCerts(CertificateBuilderTest.java:123)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at java.base/java.util.Optional.ifPresent(Optional.java:178)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:186)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:186)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:186)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1939)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:570)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:560)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:153)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:176)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:636)
	at java.base/java.util.stream.ReferencePipeline$7$1FlatMap.accept(ReferencePipeline.java:294)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1716)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:570)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:560)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:153)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:176)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:636)
	at java.base/java.util.stream.ReferencePipeline$7$1FlatMap.accept(ReferencePipeline.java:294)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1716)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:570)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:560)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:153)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:176)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:636)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
Caused by: java.lang.IllegalAccessException: class io.netty.pkitesting.CertificateBuilder cannot access class sun.security.x509.NamedX509Key (in module java.base) because module java.base does not export sun.security.x509 to unnamed module @5afa04c
	at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:400)
	at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:670)
	at java.base/java.lang.reflect.Method.invoke(Method.java:556)
	at io.netty.pkitesting.CertificateBuilder.preferredSignatureAlgorithm(CertificateBuilder.java:767)
	... 38 more
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer
normanmaurer force-pushed the jdk24 branch 3 times, most recently from e52e78b to 0f38a5c Compare May 9, 2025 14:17
@normanmaurer

normanmaurer commented May 9, 2025

Copy link
Copy Markdown
Member Author

@chrisvest 0f38a5c should be applied in a separate PR as its a bug that is not related to this change and only showed up as we can not access sun.misc.Unsafe

chrisvest reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer normanmaurer added this to the 4.2.2.Final milestone May 9, 2025
This was referenced May 10, 2025
IoUring: Don't depend on the fact that ByteBuf.memoryAddress() works #15142
Merged
Always correctly calculate the memory address of the ByteBuf even if … #15143
Merged
@normanmaurer
normanmaurer force-pushed the jdk24 branch from 84f7e22 to 4bf6589 Compare May 10, 2025 14:37
normanmaurer added 4 commits May 11, 2025 16:03
@normanmaurer
Replace Java23 with Java24 for CI testing
c2e8e0d
Motivation:

Java24 was released so we should test with it.

Modifications:

- Replace Java23 for testing with Java24
- Add profile to pom.xml

Result:

CI runs testsuite on Java24
@normanmaurer
Disable test for now
8ef4c43
@normanmaurer
Fix SSL test failures
d5c24a2
@normanmaurer
Skip test if unsafe is not usable
8894fdf
@normanmaurer
normanmaurer force-pushed the jdk24 branch from 4bf6589 to 8894fdf Compare May 11, 2025 14:03
@normanmaurer
normanmaurer requested review from chrisvest and franz1981 May 11, 2025 14:03
normanmaurer
normanmaurer commented May 11, 2025
View reviewed changes
Comment thread pkitesting/src/test/java/io/netty/pkitesting/CertificateBuilderTest.java
assertNotNull(keyPair.getPublic());
}

@Disabled

@normanmaurer normanmaurer May 11, 2025

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

@chrisvest can you investigate in this one ? We might want to merge in the meantime and do a followup ... WDYT ?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chrisvest reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@chrisvest chrisvest May 12, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

#15156

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@normanmaurer
Cleanup pom.xml
0edf884
@normanmaurer
normanmaurer force-pushed the jdk24 branch from e172e01 to 0edf884 Compare May 12, 2025 06:16
chrisvest
chrisvest approved these changes May 12, 2025
View reviewed changes
@normanmaurer
normanmaurer merged commit 2d3acab into 4.2 May 12, 2025
@normanmaurer
normanmaurer deleted the jdk24 branch May 12, 2025 19:07
normanmaurer added a commit that referenced this pull request May 13, 2025
@normanmaurer
Replace Java23 with Java24 for CI testing (#15102)
f7d732a
Motivation:

Java24 was released so we should test with it.

Modifications:

- Replace Java23 for testing with Java24
- Add profile to pom.xml

Result:

CI runs testsuite on Java24
@chrisvest

chrisvest commented May 13, 2025

Copy link
Copy Markdown
Member

@normanmaurer After this was merged, we're suddenly getting Java 24 compilation errors, in 4.2 and in #15158

Quite surprising, since the PR build for this PR pass before the merge.

[INFO] -------------------------------------------------------------
Error:  COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
Error:  /code/common/src/main/java/io/netty/util/internal/PlatformDependent0.java:[21,15] error: package sun.misc does not exist
Error:  /code/common/src/main/java/io/netty/util/internal/PlatformDependent0.java:[70,17] error: cannot find symbol
  symbol:   class Unsafe
  location: class PlatformDependent0
Error:  /code/common/src/main/java/io/netty/util/internal/PlatformDependent0.java:[92,8] error: cannot find symbol
  symbol:   class Unsafe
  location: class PlatformDependent0
Error:  /code/common/src/main/java/io/netty/util/internal/PlatformDependent0.java:[108,50] error: cannot find symbol
  symbol: class Unsafe
Error:  /code/common/src/main/java/io/netty/util/internal/PlatformDependent0.java:[144,26] error: cannot find symbol
  symbol:   class Unsafe
  location: class PlatformDependent0
Error:  /code/common/src/main/java/io/netty/util/internal/PlatformDependent0.java:[154,22] error: cannot find symbol
  symbol:   class Unsafe
  location: class PlatformDependent0
Error:  /code/common/src/main/java/io/netty/util/internal/PlatformDependent0.java:[160,44] error: cannot find symbol
  symbol: class Unsafe
Error:  /code/common/src/main/java/io/netty/util/internal/PlatformDependent0.java:[224,22] error: cannot find symbol
  symbol:   class Unsafe
  location: class PlatformDependent0
Error:  /code/common/src/main/java/io/netty/util/internal/PlatformDependent0.java:[255,22] error: cannot find symbol
  symbol:   class Unsafe
  location: class PlatformDependent0
[INFO] 9 errors 
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

normanmaurer added a commit that referenced this pull request Aug 30, 2025
@normanmaurer @chrisvest
Replace Java23 with Java24 for CI testing (#15102) (#15158)
864a569
Motivation:

Java24 was released so we should test with it.

Modifications:

- Replace Java23 for testing with Java24
- Add profile to pom.xml

Result:

CI runs testsuite on Java24

---------

Co-authored-by: Chris Vest <[email protected]>
@He-Pin He-Pin mentioned this pull request Aug 30, 2025
chore: Remove SecurityManager usage. apache/pekko#2106
Merged
normanmaurer added a commit that referenced this pull request Sep 3, 2025
@normanmaurer
Revert "Replace Java23 with Java24 for CI testing (#15102) (#15158)"
b97c2a2
This reverts commit 864a569.
normanmaurer added a commit that referenced this pull request Sep 4, 2025
@normanmaurer @chrisvest
Replace Java23 with Java24 for CI testing (#15102) (#15158)
2a81e04
Motivation:

Java24 was released so we should test with it.

Modifications:

- Replace Java23 for testing with Java24
- Add profile to pom.xml
- Adjust Tests

Result:

CI runs testsuite on Java24

---------

Co-authored-by: Chris Vest <[email protected]>
normanmaurer added a commit that referenced this pull request Sep 4, 2025
@normanmaurer @chrisvest
Replace Java23 with Java24 for CI testing (#15102) (#15158) (#15623)
e2ed7e8
Motivation:

Java24 was released so we should test with it.

Modifications:

- Replace Java23 for testing with Java24
- Add profile to pom.xml
- Adjust Tests

Result:

CI runs testsuite on Java24

---------

Co-authored-by: Chris Vest <[email protected]>
This was referenced Sep 14, 2026
Http2: Reserve promised stream for PUSH_PROMISE after local RST_STREAM #17471
Closed
cache failure 1233e4a5 #17565
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chrisvest chrisvest chrisvest approved these changes
@franz1981 franz1981 Awaiting requested review from franz1981

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

4.2.2.Final

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@normanmaurer @chrisvest @franz1981
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.