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

Log key info for deserilation issue while index update

    XMLWordPrintableJSON

Details

    Description

      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); }

      }

      Attachments

        Issue Links

          Activity

            People

              zhouxj Xiaojian Zhou
              agingade Anilkumar Gingade
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: