Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-4854

Server doesn't start after create a remote store and restart the server

    XMLWordPrintable

Details

    • Bug
    • Status: Verified (View Workflow)
    • Major
    • Resolution: Done
    • RHDG 8.3 CD
    • RHDG 8.3 CD
    • Server
    • None

    Description

      If you create a remote cache store (to do a rolling upgrade) like:

      {
        "distributed-cache": {
          "mode": "SYNC",
          "encoding": {
            "key": {
              "media-type": "text/plain"
            },
            "value": {
              "media-type": "text/plain"
            }
          },
          "persistence": {
            "remote-store": {
              "protocol-version": 2.5,
              "shared": true,
              "hotrod-wrapping": true,
              "raw-values": true,
              "cache": "default",
              "segmented": false,
              "security": {
                "authentication": {
                  "server-name": "infinispan",
                  "digest": {
                    "username": "user",
                    "password": "passwd-123",
                    "realm": "default",
                    "sasl-mechanism": "DIGEST-MD5"
                  }
                }
              },
              "remote-server": {
                "host": "127.0.0.1",
                "port": 11222
              }
            }
          }
        }
      }
      

      And restart the server, it will not start anymore, the following exception will be throw:

      Caused by: org.infinispan.commons.configuration.io.ConfigurationReaderException: Unexpected element 'properties' encountered[19,37]
              at org.infinispan.configuration.parsing.ParseUtils.unexpectedElement(ParseUtils.java:37)
              at org.infinispan.configuration.parsing.CacheParser.parseStoreElement(CacheParser.java:1676)
              at org.infinispan.configuration.parsing.Parser.parseStoreElement(Parser.java:1284)
              at org.infinispan.persistence.remote.configuration.RemoteStoreConfigurationParser.parseRemoteStore(RemoteStoreConfigurationParser.java:81)
              at org.infinispan.persistence.remote.configuration.RemoteStoreConfigurationParser.readElement(RemoteStoreConfigurationParser.java:41)
              at org.infinispan.configuration.parsing.ParserRegistry.parseElement(ParserRegistry.java:206)
              at org.infinispan.configuration.parsing.ConfigurationBuilderHolder.handleAnyElement(ConfigurationBuilderHolder.java:162)
              at org.infinispan.commons.configuration.io.AbstractConfigurationReader.handleAny(AbstractConfigurationReader.java:57)
              at org.infinispan.configuration.parsing.CacheParser.parsePersistence(CacheParser.java:1384)
              at org.infinispan.configuration.parsing.CacheParser.parseCacheElement(CacheParser.java:480)
              at org.infinispan.configuration.parsing.CacheParser.parseSharedStateCacheElement(CacheParser.java:219)
              at org.infinispan.configuration.parsing.CacheParser.parseDistributedCache(CacheParser.java:1228)
              at org.infinispan.configuration.parsing.Parser.parseCaches(Parser.java:815)
              at org.infinispan.configuration.parsing.Parser.parseContainer(Parser.java:695)
              at org.infinispan.configuration.parsing.Parser.readElement(Parser.java:84)
              at org.infinispan.configuration.parsing.ParserRegistry.parseElement(ParserRegistry.java:206)
              at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:184)
              at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:170)
              at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:152)
              ... 28 more
      

      Attachments

        Issue Links

          Activity

            People

              ttarrant@redhat.com Tristan Tarrant
              gustavolira Gustavo Lira Silva
              Gustavo Lira Silva Gustavo Lira Silva
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: