Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-8893

NPE when netty try to allocate directBuffer

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.3.2
    • Fix Version/s: 1.6.0
    • Component/s: Network
    • Labels:
      None

      Description

      Job failed with this exception

      Caused by: java.lang.NullPointerException
              at io.netty.buffer.PoolChunk.initBufWithSubpage(PoolChunk.java:381)
              at io.netty.buffer.PoolChunk.initBufWithSubpage(PoolChunk.java:369)
              at io.netty.buffer.PoolArena.allocate(PoolArena.java:194)
              at io.netty.buffer.PoolArena.allocate(PoolArena.java:132)
              at io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:271)
              at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:155)
              at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:146)
              at org.apache.flink.runtime.io.network.netty.NettyBufferPool.directBuffer(NettyBufferPool.java:278)
              at org.apache.flink.runtime.io.network.netty.NettyMessage.allocateBuffer(NettyMessage.java:72)
              at org.apache.flink.runtime.io.network.netty.NettyMessage.access$000(NettyMessage.java:50)
              at org.apache.flink.runtime.io.network.netty.NettyMessage$BufferResponse.write(NettyMessage.java:227)
              ... 26 more
      

      After research, this may be caused by allocate from muti-thread.

      https://github.com/netty/netty/issues/4198
      https://github.com/netty/netty/pull/4388

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                aitozi aitozi
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: