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 2021/12/11 02:28:00 UTC

[jira] [Commented] (GEODE-9838) Log key info for deserilation issue while index update

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

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

Commit fd3672e2ac902a9851ff2daa6c3180541d3f7ff0 in geode's branch refs/heads/master from Xiaojian Zhou
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=fd3672e ]

GEODE-9838: Log key info for deserialization issue while index update (#7136)

(cherry picked from commit f56d60a6227fc46fbf3e8f3f5ba48d8be453e69e)


> Log key info for deserilation issue while index update 
> -------------------------------------------------------
>
>                 Key: GEODE-9838
>                 URL: https://issues.apache.org/jira/browse/GEODE-9838
>             Project: Geode
>          Issue Type: Improvement
>          Components: querying
>    Affects Versions: 1.15.0
>            Reporter: Anilkumar Gingade
>            Assignee: Xiaojian Zhou
>            Priority: Major
>              Labels: GeodeOperationAPI, pull-request-available
>             Fix For: 1.12.6, 1.13.5, 1.14.1, 1.15.0
>
>
> When there is issue in Index update (maintenance); the index is marked as invalid. And warning is logged: 
> [warn 2021/11/11 07:39:28.215 CST pazrslsrv004 <Pooled High Priority Message Processor 963> tid=0x124ecf] Updating the Index patientMemberIdentifier failed. The index is corrupted and marked as invalid.
> org.apache.geode.cache.query.internal.index.IMQException
> Adding "key" information in the log helps diagnosing the failure and adding or removing the entry in question. 
> Code path IndexManager.java:
> void addIndexMapping(RegionEntry entry, IndexProtocol index) {
>   try {
>     index.addIndexMapping(entry);
>   } catch (Exception exception) {
>     index.markValid(false);
>     setPRIndexAsInvalid((AbstractIndex) index);
>     logger.warn(String.format(
>         "Updating the Index %s failed. The index is corrupted and marked as invalid.",
>         ((AbstractIndex) index).indexName), exception);
>   }
> }
> void removeIndexMapping(RegionEntry entry, IndexProtocol index, int opCode) {
>     try {
>       index.removeIndexMapping(entry, opCode);
>     } catch (Exception exception) {
>       index.markValid(false);
>       setPRIndexAsInvalid((AbstractIndex) index);
>       logger.warn(String.format(
>           "Updating the Index %s failed. The index is corrupted and marked as invalid.",
>           ((AbstractIndex) index).indexName), exception);
>     }
>   }



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