geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (GEODE-3937) Fix NPE when executing removeFromDisk
Date Wed, 22 Nov 2017 16:19:00 GMT


ASF GitHub Bot commented on GEODE-3937:

jhuynh1 commented on issue #1002: GEODE-3937:Fix NPE when executing removeFromDisk
   You would need to do that if you want to remove a key from a bucketRegionQueue. Based on
your test code it would be:
   private void clearBucketRegionTestOnly(BucketRegion bucketRegion) {
       Set keySet = bucketRegion.keySet();
        for (Iterator iterator = keySet.iterator(); iterator.hasNext();) {
          Object key =;
         ((BucketRegionQueue) bucketRegion).destroyKey(key);
   However this pull request is about an NPE that does not exist in the product at this time,
so I don't think this pull request should be committed

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Fix NPE when executing  removeFromDisk
> --------------------------------------
>                 Key: GEODE-3937
>                 URL:
>             Project: Geode
>          Issue Type: Bug
>          Components: wan
>            Reporter: dinesh akhand
>            Priority: Trivial
> While executing the test case or clearQueueTestOnly method. we can see exception
> [vm4] java.lang.NullPointerException
> [vm4] 	at org.apache.geode.internal.cache.entries.DiskEntry$Helper.removeFromDisk(
> [vm4] 	at org.apache.geode.internal.cache.entries.AbstractOplogDiskRegionEntry.removePhase1(
> [vm4] 	at org.apache.geode.internal.cache.entries.AbstractRegionEntry.destroy(
> [vm4] 	at org.apache.geode.internal.cache.AbstractRegionMap.destroyEntry(
> [vm4] 	at org.apache.geode.internal.cache.AbstractRegionMap.destroy(
> [vm4] 	at org.apache.geode.internal.cache.LocalRegion.mapDestroy(
> [vm4] 	at org.apache.geode.internal.cache.LocalRegion.mapDestroy(
> [vm4] 	at org.apache.geode.internal.cache.BucketRegion.basicDestroy(
> [vm4] 	at org.apache.geode.internal.cache.AbstractBucketRegionQueue.basicDestroy(
> [vm4] 	at org.apache.geode.internal.cache.BucketRegionQueue.basicDestroy(
> [vm4] 	at org.apache.geode.internal.cache.LocalRegion.validatedDestroy(
> [vm4] 	at org.apache.geode.internal.cache.DistributedRegion.validatedDestroy(
> [vm4] 	at org.apache.geode.internal.cache.LocalRegion.destroy(
> [vm4] 	at org.apache.geode.internal.cache.AbstractRegion.destroy(
> [vm4] 	at org.apache.geode.internal.cache.LocalRegion.remove(
> [vm4] 	at org.apache.geode.internal.cache.wan.parallel.ParallelGatewaySenderQueue.clearPartitionedRegion(
> [vm4] 	at org.apache.geode.internal.cache.wan.parallel.ParallelGatewaySenderQueue.clearQueue(
> [vm4] 	at org.apache.geode.internal.cache.wan.parallel.ConcurrentParallelGatewaySenderQueue.clearQueue(
> [vm4] 	at org.apache.geode.internal.cache.wan.WANTestBase.clearGatewaySender(
> [vm4] 	at org.apache.geode.internal.cache.wan.parallel.ParallelGatewaySenderQueueOverflowDUnitTest.lambda$8(
> [vm4] 	at org.apache.geode.internal.cache.wan.parallel.ParallelGatewaySenderQueueOverflowDUnitTest$$Lambda$42/
> [vm4] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

This message was sent by Atlassian JIRA

View raw message