You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "waitinfuture (via GitHub)" <gi...@apache.org> on 2023/12/12 08:13:00 UTC

[PR] [CELEBORN-1162] Fix refCnt 0 Exception in FetchHandler#handleChunkFetchRequest [incubator-celeborn]

waitinfuture opened a new pull request, #2148:
URL: https://github.com/apache/incubator-celeborn/pull/2148

   <!--
   Thanks for sending a pull request!  Here are some tips for you:
     - Make sure the PR title start w/ a JIRA ticket, e.g. '[CELEBORN-XXXX] Your PR title ...'.
     - Be sure to keep the PR description updated to reflect all changes.
     - Please write your PR title to summarize what this PR proposes.
     - If possible, provide a concise example to reproduce the issue for a faster review.
   -->
   
   ### What changes were proposed in this pull request?
   When I'm testing main branch I encountered exception below:
   ```
   23/12/12 16:03:03,262 WARN [fetch-server-11-52] DefaultPromise: An exception was thrown by org.apache.celeborn.service.deploy.worker.FetchHandler$$anon$2.operationComplete()
   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.AbstractByteBuf.getInt(AbstractByteBuf.java:433)
   	at io.netty.buffer.ByteBufUtil.hashCode(ByteBufUtil.java:208)
   	at io.netty.buffer.AbstractByteBuf.hashCode(AbstractByteBuf.java:1342)
   	at java.util.WeakHashMap.hash(WeakHashMap.java:298)
   	at java.util.WeakHashMap.getEntry(WeakHashMap.java:426)
   	at java.util.WeakHashMap.containsKey(WeakHashMap.java:417)
   	at org.apache.commons.lang3.builder.ToStringStyle.isRegistered(ToStringStyle.java:207)
   	at org.apache.commons.lang3.builder.ToStringStyle.appendInternal(ToStringStyle.java:492)
   	at org.apache.commons.lang3.builder.ToStringStyle.append(ToStringStyle.java:466)
   	at org.apache.commons.lang3.builder.ToStringBuilder.append(ToStringBuilder.java:845)
   	at org.apache.celeborn.common.network.buffer.NettyManagedBuffer.toString(NettyManagedBuffer.java:82)
   	at java.lang.String.valueOf(String.java:2994)
   	at java.lang.StringBuffer.append(StringBuffer.java:269)
   	at org.apache.commons.lang3.builder.ToStringStyle.appendDetail(ToStringStyle.java:614)
   	at org.apache.commons.lang3.builder.ToStringStyle.appendInternal(ToStringStyle.java:579)
   	at org.apache.commons.lang3.builder.ToStringStyle.append(ToStringStyle.java:466)
   	at org.apache.commons.lang3.builder.ToStringBuilder.append(ToStringBuilder.java:845)
   	at org.apache.celeborn.common.network.protocol.RpcRequest.toString(RpcRequest.java:96)
   	at org.apache.celeborn.service.deploy.worker.FetchHandler$$anon$2.operationComplete(FetchHandler.scala:403)
   	at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:590)
   	at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:583)
   	at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:559)
   	at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:492)
   	at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:636)
   	at io.netty.util.concurrent.DefaultPromise.setSuccess0(DefaultPromise.java:625)
   	at io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:105)
   	at io.netty.util.internal.PromiseNotificationUtil.trySuccess(PromiseNotificationUtil.java:48)
   	at io.netty.channel.ChannelOutboundBuffer.safeSuccess(ChannelOutboundBuffer.java:728)
   	at io.netty.channel.ChannelOutboundBuffer.remove(ChannelOutboundBuffer.java:283)
   	at io.netty.channel.nio.AbstractNioByteChannel.doWriteInternal(AbstractNioByteChannel.java:242)
   	at io.netty.channel.nio.AbstractNioByteChannel.doWrite0(AbstractNioByteChannel.java:212)
   	at io.netty.channel.socket.nio.NioSocketChannel.doWrite(NioSocketChannel.java:407)
   	at io.netty.channel.AbstractChannel$AbstractUnsafe.flush0(AbstractChannel.java:931)
   	at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.forceFlush(AbstractNioChannel.java:361)
   	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:782)
   	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
   	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
   	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
   	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
   	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
   	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
   	at java.lang.Thread.run(Thread.java:750)
   ```
   
   This is because in https://github.com/apache/incubator-celeborn/pull/2123 the `release` is called in `TransportRequestHandler#processRpcRequest`, but `FetchHandler#handleChunkFetchRequest` refererences `req` in callback, which is later.
   
   ### Why are the changes needed?
   ditto
   
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   
   ### How was this patch tested?
   Manual test
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CELEBORN-1162][BUG] Fix refCnt 0 Exception in FetchHandler#handleChunkFetchRequest [incubator-celeborn]

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #2148:
URL: https://github.com/apache/incubator-celeborn/pull/2148#issuecomment-1851517843

   ## [Codecov](https://app.codecov.io/gh/apache/incubator-celeborn/pull/2148?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   All modified and coverable lines are covered by tests :white_check_mark:
   > Comparison is base [(`8516df4`)](https://app.codecov.io/gh/apache/incubator-celeborn/commit/8516df4beb37627a4a312ae3906a3ba860ad4037?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) 46.36% compared to head [(`712c53b`)](https://app.codecov.io/gh/apache/incubator-celeborn/pull/2148?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) 46.38%.
   
   
   <details><summary>Additional details and impacted files</summary>
   
   
   ```diff
   @@            Coverage Diff             @@
   ##             main    #2148      +/-   ##
   ==========================================
   + Coverage   46.36%   46.38%   +0.03%     
   ==========================================
     Files         175      175              
     Lines       11370    11370              
     Branches     1019     1019              
   ==========================================
   + Hits         5270     5273       +3     
   + Misses       5747     5744       -3     
     Partials      353      353              
   ```
   
   
   
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/incubator-celeborn/pull/2148?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CELEBORN-1162][BUG] Fix refCnt 0 Exception in FetchHandler#handleChunkFetchRequest [incubator-celeborn]

Posted by "waitinfuture (via GitHub)" <gi...@apache.org>.
waitinfuture commented on PR #2148:
URL: https://github.com/apache/incubator-celeborn/pull/2148#issuecomment-1851497923

   cc @otterc @FMX 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CELEBORN-1162][BUG] Fix refCnt 0 Exception in FetchHandler#handleChunkFetchRequest [incubator-celeborn]

Posted by "FMX (via GitHub)" <gi...@apache.org>.
FMX closed pull request #2148: [CELEBORN-1162][BUG] Fix refCnt 0 Exception in FetchHandler#handleChunkFetchRequest
URL: https://github.com/apache/incubator-celeborn/pull/2148


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org