[ https://issues.apache.org/jira/browse/GEODE-10114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17505037#comment-17505037 ]
ASF subversion and git services commented on GEODE-10114: --------------------------------------------------------- Commit defc16878537716fdfe15e7e7cd8bd3227b46c64 in geode's branch refs/heads/develop from Eric Shu [ https://gitbox.apache.org/repos/asf?p=geode.git;h=defc168 ] GEODE-10114: Always checkReadiness if indexManager is null (#7432) * When creating indexes on bucket region failed with an exception, geode only logs the exception to indicate an index creation failed without throwing the exception to the caller. * IndexManager can be null if bucket region is destroyed due to cache is closing. In this case, checkReadiness is invoked to make sure CacheClosedException is thrown and logged instead of NullPointerException. > NullPointerException is logged if create index when cache is closing. > --------------------------------------------------------------------- > > Key: GEODE-10114 > URL: https://issues.apache.org/jira/browse/GEODE-10114 > 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 > > The following NPE is logged when creating index if cache is closing at the > same time. > [info 2020/02/19 02:28:46.140 PST bridgegemfire3_host1_29240 <Pooled Waiting > Message Processor 1> tid=0x2e] Failed to create index idRangeEntryIndex on > region /__PR/_B__QueryRegion0_46 with exception: > java.lang.NullPointerException > [info 2020/02/19 02:28:46.198 PST bridgegemfire3_host1_29240 <Pooled Waiting > Message Processor 1> tid=0x2e] Failed to create index > statusCompactRangeEntryIndex on region /__PR/_B__QueryRegion0_46 with > exception: java.lang.NullPointerException -- This message was sent by Atlassian Jira (v8.20.1#820001)