-
Notifications
You must be signed in to change notification settings - Fork 152
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
Maybe memory leak in Netty 4 transport. #1634
Comments
The link makes no mention of Pekko. Can you remove the labels (bug and backport) until there is Pekko specific POC for this? |
We now have #1635 but can we take a little bit of time and care. There is no point rushing this. The change is not really usable until we do a release. Can we slow down the effort and stop opening multiple PRs at the same time? |
@He-Pin you linked https://issues.apache.org/jira/browse/FLINK-36788 - I don't understand why. The real issue appears to be https://issues.apache.org/jira/browse/FLINK-36510 |
@pjfanning Sorry,I wrong linked , have updated to the right link |
Actually, the code is Right:(, Because it extends the finally {
if (autoRelease && release) {
ReferenceCountUtil.release(msg);
}
} |
Do local run with cluster/MultiJvm/test and -Dio.netty.leakDetection.level=PARANOID to find if it leaked. |
Isn't it good that there is no leak? Can we close this? Any ideas what might be going wrong in Flink tests? https://issues.apache.org/jira/browse/FLINK-36290 Do we need the exception handling changes that you were trying to make in #1635 ? |
Yes, I run it locally, and no leak, otherwise it will prints something like:
|
@pjfanning I think the exception handing is nice, I will add it in another PR. |
@pjfanning I think the only way to find where it leaked is using Or they can rerun the tests with The issue seems only on Java 11+, so maybe try with |
refs:
OOM reported: https://issues.apache.org/jira/browse/FLINK-36290
https://issues.apache.org/jira/browse/FLINK-36510
I think there will be some leak, eg, not callingByteBuf.release
somewhere.Update:
The current code is right.
I think the only way to find where it leaked is using -Dio.netty.leakDetection.level=PARANOID and return the test,
Or they can rerun the tests with -Dio.netty.tryReflectionSetAccessible=true.
The text was updated successfully, but these errors were encountered: