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

Remove unused code and if clause that does not get thrown

    XMLWordPrintableJSON

Details

    Description

      There appears to be an exception that should be thrown, but upon futher inspection, this clause can never be hit because the boolean it checks is never set to true;

       

      In LocalRegion:

      logger.info("Failed to create index {} on region {} with exception: {}",
      icd.getIndexName(), this.getFullPath(), ex);

      // Check if the region index creation is from cache.xml, in that case throw exception.
      // Other case is when bucket regions are created dynamically, in that case ignore the
      // exception.
      if (internalRegionArgs.getDeclarativeIndexCreation())

      { throw new InternalGemFireError(LocalizedStrings.GemFireCache_INDEX_CREATION_EXCEPTION_1 .toLocalizedString(icd.getIndexName(), this.getFullPath()), ex); }

      Attachments

        Issue Links

          Activity

            People

              jasonhuynh Jason Huynh
              jasonhuynh Jason Huynh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m