Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-2333

There is a race in GatewaySenderEventImpl.release() that could lead to offheap to be released more than once

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • offheap
    • None

    Description

      The following log shows that an offheap memory was unexpectedly freed.
      [severe 2017/01/07 09:14:40.789 UTC bridgegemfire_1_1_rs-QueuesBTTest-2017-01-06-14-07-15-client-12_3912 <AckReaderThread for : Event Processor for GatewaySender_sender_bridgeds_1_to_bridgeds_2_0> tid=0x97] Stopping the processor because the following exception occurred while processing a batch:
      java.lang.IllegalStateException: It looks like off heap memory @7f33a8000238 was already freed. rawBits=0 history=null
      at org.apache.geode.internal.offheap.OffHeapStoredObject.release(OffHeapStoredObject.java:675)
      at org.apache.geode.internal.offheap.OffHeapStoredObject.release(OffHeapStoredObject.java:659)
      at org.apache.geode.internal.offheap.OffHeapStoredObject.release(OffHeapStoredObject.java:373)
      at org.apache.geode.internal.offheap.OffHeapHelper.releaseAndTrackOwner(OffHeapHelper.java:138)
      at org.apache.geode.internal.cache.wan.GatewaySenderEventImpl.release(GatewaySenderEventImpl.java:1213)
      at org.apache.geode.internal.cache.wan.parallel.ParallelGatewaySenderQueue.remove(ParallelGatewaySenderQueue.java:1096)
      at org.apache.geode.internal.cache.wan.parallel.ParallelGatewaySenderQueue.remove(ParallelGatewaySenderQueue.java:1531)
      at org.apache.geode.internal.cache.wan.AbstractGatewaySenderEventProcessor.eventQueueRemove(AbstractGatewaySenderEventProcessor.java:231)
      at org.apache.geode.internal.cache.wan.AbstractGatewaySenderEventProcessor.handleSuccessBatchAck(AbstractGatewaySenderEventProcessor.java:981)
      at org.apache.geode.internal.cache.wan.GatewaySenderEventRemoteDispatcher$AckReaderThread.run(GatewaySenderEventRemoteDispatcher.java:636)

      Attachments

        Activity

          People

            eshu Eric Shu
            eshu Eric Shu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: