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

Cache could close with uncaught exception

Agile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersStop watchingWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      In GemFireCacheImpl.initialize(), it is possible that an uncaught exception is not logged and close the cache.

           try {
            if (!isClient) {
              applyJarAndXmlFromClusterConfig();
            }
            initializeDeclarativeCache();
            completedCacheXml = true;
          } catch (RuntimeException e) {
            logger.error("Cache initialization for " + this.toString() + " failed because:", e);
            throw e;
          } finally {
            if (!completedCacheXml) {
              // so initializeDeclarativeCache threw an exception
              try {
                close();
              } catch (Throwable ignore) {
                // I don't want init to throw an exception that came from the close.
                // I want it to throw the original exception that came from initializeDeclarativeCache.
              }
              configurationResponse = null;
            }
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jchen21 Jianxia Chen
            jchen21 Jianxia Chen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment