-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
!test Migrate akka-multi-node-testkit to Netty4 #32005
Conversation
cd55137
to
cdf5bab
Compare
Huh, something weird with validation, I'll close and re-open to retrigger. |
@johanandren I think this is ready. |
akka-multi-node-testkit/src/main/scala/akka/remote/testconductor/RemoteConnection.scala
Show resolved
Hide resolved
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.
Looking good, thanks.
Note that we don't run multi-jvm tests in PR validation, so before merging we should verify locally.
...-testkit/src/main/mima-filters/2.8.3.backwards.excludes/migrate-to-netty4.backwards.excludes
Show resolved
Hide resolved
I think we can also trigger the multi-jvm tests manually against this branch before merging. |
Seeing failures with this exception when I run it locally:
|
@johanandren I have updated, and add the |
Now the multi jvm cluster tests are failing with a different error, connection failed, did you get those to pass locally with these changes? |
Let me check it then. |
Still seeing tests failing with connection refused errors when I try to run cluster multi JVM tests with this |
hum,let's |
No urgency, vacation times in Europe, so reviewing will be slow the next couple of weeks anyway. |
be918b7
to
1744aed
Compare
8142174
to
25a178a
Compare
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.
LGTM, ran through cluster multi jvm tests on both MacOS and Linux with all tests green with these changes. 👍
Thanks @He-Pin
akka-multi-node-testkit/src/main/scala/akka/remote/testconductor/Player.scala
Outdated
Show resolved
Hide resolved
@johanandren Yes, it did take me sometime to make it right, and now, Netty 3 is gone. |
</root> | ||
<logger name="io.netty.util.Recycler" level="ERROR" /> | ||
<logger name="io.netty.buffer.PoolThreadCache" level="ERROR" /> | ||
</configuration> |
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.
is slf4j/logback needed by Netty or what is the reason we need this now?
is this included by the other sbt projects that have multi-jvm tests or is same needed in more places?
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.
I see this in logs:
2023-08-14T08:44:19.0726537Z �[0m[�[0m�[31merror�[0m] �[0m�[0m[�[34mJVM-2�[0m] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".�[0m
2023-08-14T08:44:19.0727622Z �[0m[�[0m�[31merror�[0m] �[0m�[0m[�[34mJVM-2�[0m] SLF4J: Defaulting to no-operation (NOP) logger implementation�[0m
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.
I need it to suppress netty 4's logging
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.
I'll add it for all multi-jvm tests then.
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.
I have tried this in CI: https://github.com/akka/akka/actions/runs/5853551428
Seems to work fine, we have some flaky tests since before.
</root> | ||
<logger name="io.netty.util.Recycler" level="ERROR" /> | ||
<logger name="io.netty.buffer.PoolThreadCache" level="ERROR" /> | ||
</configuration> |
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.
I see this in logs:
2023-08-14T08:44:19.0726537Z �[0m[�[0m�[31merror�[0m] �[0m�[0m[�[34mJVM-2�[0m] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".�[0m
2023-08-14T08:44:19.0727622Z �[0m[�[0m�[31merror�[0m] �[0m�[0m[�[34mJVM-2�[0m] SLF4J: Defaulting to no-operation (NOP) logger implementation�[0m
I created issue #32038 but that happened once before this PR as well. |
References #31974
Not sort the imports yet.