-
Notifications
You must be signed in to change notification settings - Fork 151
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
[Flaky Test] Throw an io.netty.util.IllegalReferenceCountException #2273
Comments
Maybe we shouldn't use PooledByteBuf. Because we will release the memory after we used the memory. You can see Line 82 in 28475fc
cc @maobaolong @advancedxy @rickyma @LuciferYang WDYT? |
Users can choose whatever kind of bytebuf they want: We basically will release every bytebuf, but it does not mean that we don't need PooledByteBuf. |
But it will throw a ref count exception in our UT. I suspect that we released a reused bytebuf in the ByteBuf pool. |
I didn't look into the code carefully. I suppose this should be a bug. @maobaolong Similar to #1628? |
Yes, they are similar. |
I suspect that the issue is caused by
|
Code of Conduct
Search before asking
Describe the flaky test
Caused by: io.netty.util.IllegalReferenceCountException: refCnt: 0
at io.netty.buffer.AbstractByteBuf.ensureAccessible(AbstractByteBuf.java:1454)
at io.netty.buffer.AbstractByteBuf.checkIndex(AbstractByteBuf.java:1383)
at io.netty.buffer.PooledByteBuf.duplicateInternalNioBuffer(PooledByteBuf.java:196)
at io.netty.buffer.PooledByteBuf.nioBuffer(PooledByteBuf.java:213)
at io.netty.buffer.AbstractByteBuf.nioBuffer(AbstractByteBuf.java:1231)
at org.apache.uniffle.common.netty.buffer.NettyManagedBuffer.nioByteBuffer(NettyManagedBuffer.java:48)
at org.apache.uniffle.common.ShuffleIndexResult.getIndexData(ShuffleIndexResult.java:84)
Actions URL
https://github.com/apache/incubator-uniffle/actions/runs/12158115239/attempts/1
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: