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

When creating index in geode, InternalGemFireException should not be thrown to user if hitting CacheClosedException

    XMLWordPrintableJSON

Details

    Description

      Here is the exception thrown to the user:
      org.apache.geode.InternalGemFireException: unexpected exception on member rs-FullRegression27464262a7i32xlarge-hydra-client-57(gemfire2_host1_13415:13415)<ec><v2>:41003
      at org.apache.geode.distributed.internal.ReplyException.handleCause(ReplyException.java:98)
      at org.apache.geode.internal.cache.partitioned.PartitionMessage$PartitionResponse.waitForCacheException(PartitionMessage.java:852)
      at org.apache.geode.internal.cache.partitioned.IndexCreationMsg$IndexCreationResponse.waitForResult(IndexCreationMsg.java:481)
      at org.apache.geode.internal.cache.PartitionedRegion.createIndex(PartitionedRegion.java:8536)
      at org.apache.geode.internal.cache.PartitionedRegion.createIndex(PartitionedRegion.java:8453)
      at org.apache.geode.cache.query.internal.DefaultQueryService.createIndex(DefaultQueryService.java:245)
      at org.apache.geode.cache.query.internal.DefaultQueryService.createIndex(DefaultQueryService.java:203)
      at org.apache.geode.cache.query.internal.DefaultQueryService.createIndex(DefaultQueryService.java:274)
      at org.apache.geode.cache.query.internal.DefaultQueryService.createIndex(DefaultQueryService.java:197)
      Caused by: Creation of index: statusIndex failed due to: org.apache.geode.cache.CacheClosedException: The cache is closed.
      at org.apache.geode.internal.cache.PartitionedRegion.createIndexes(PartitionedRegion.java:8648)
      at org.apache.geode.internal.cache.partitioned.IndexCreationMsg.operateOnPartitionedRegion(IndexCreationMsg.java:125)
      at org.apache.geode.internal.cache.partitioned.IndexCreationMsg.process(IndexCreationMsg.java:286)
      at org.apache.geode.distributed.internal.DistributionMessage.scheduleAction(DistributionMessage.java:376)
      at org.apache.geode.distributed.internal.DistributionMessage$1.run(DistributionMessage.java:441)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at org.apache.geode.distributed.internal.ClusterOperationExecutors.runUntilShutdown(ClusterOperationExecutors.java:446)
      at org.apache.geode.distributed.internal.ClusterOperationExecutors.doPartitionRegionThread(ClusterOperationExecutors.java:426)
      at org.apache.geode.logging.internal.executors.LoggingThreadFactory.lambda$newThread$0(LoggingThreadFactory.java:120)
      at java.lang.Thread.run(Thread.java:748)

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: