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

Cache could close with uncaught exception

    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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: