You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/03/08 19:56:00 UTC

[jira] [Commented] (GEODE-10110) When creating index in geode, InternalGemFireException should not be thrown to user if hitting CacheClosedException

    [ https://issues.apache.org/jira/browse/GEODE-10110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17503159#comment-17503159 ] 

ASF subversion and git services commented on GEODE-10110:
---------------------------------------------------------

Commit c1ea81a48e27f1268ff4842c67c6e6421b5a01dc in geode's branch refs/heads/develop from Eric Shu
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=c1ea81a ]

GEODE-10110: Do not wrap CacheClosedException unexpectedly. (#7426)

* When creating index, throw CacheClosedException instead of adding it
    to exceptionsMap which will eventually converted to
    MultiIndexCreationException, with InternalGemFireException thrown
    to the user.

> When creating index in geode, InternalGemFireException should not be thrown to user if hitting CacheClosedException
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: GEODE-10110
>                 URL: https://issues.apache.org/jira/browse/GEODE-10110
>             Project: Geode
>          Issue Type: Bug
>          Components: querying
>    Affects Versions: 1.12.0, 1.13.0, 1.14.0, 1.15.0
>            Reporter: Eric Shu
>            Assignee: Eric Shu
>            Priority: Major
>              Labels: GeodeOperationAPI, pull-request-available
>
> 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)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)