Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-15739

Server reporting wrong storage media-type in case of adding remote-store to the cache over CLI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • None
    • Server
    • None

      While performing rolling upgrades for cache "___protobuf_metadata" from DG 8.4.6 server to DG 8.4.7 (nightly built) server, I am doing following steps:

      1) I have created an upgrade.json with the following remote-store configuration which I later add over CLI to the cache:

      {
        "remote-store": {
          "cache": "___protobuf_metadata",
          "shared": true,
          "raw-values": true,
          "protocol-version": "2.5",
          "remote-server": [
            {
              "host": "127.0.0.1",
              "port": 11222
            }
          ]
        }
      }
      

      2) So the next step that I do is and which returns error:

      [fedora-58719@cluster//containers/default]> migrate cluster connect -c ___protobuf_metadata --file=upgrade.json
      Error: org.infinispan.commons.CacheConfigurationException: ISPN010011: Segmentation is not supported for a RemoteStore when the configured key media type application/x-java-object does not match the remote servers key media type application/unknown
      

      The issue here is that, the "___protobuf_metadata" cache is predefined server side and has the same config on both servers, i.e.

      <replicated-cache name="___protobuf_metadata" mode="SYNC" statistics="false">
      	<encoding>
      		<key media-type="application/x-java-object"/>
      		<value media-type="application/x-java-object"/>
      	</encoding>
      	<locking isolation="READ_COMMITTED" striping="false"/>
      	<transaction mode="BATCH" locking="PESSIMISTIC"/>
      	<persistence availability-interval="-1">
      		<single-file-store purge="false" preload="true" segmented="false" path="/home/amanukya/Servers/redhat-datagrid-8.4.6.CR1-server/redhat-datagrid-8.4.6-server/server/data"/>
      	</persistence>
      	<state-transfer enabled="true" await-initial-transfer="false"/>
      </replicated-cache>
      

      So the key media-type is the same on both sides and is "application/x-java-object", but the command complains that " the remote servers key media type is application/unknown".

            Unassigned Unassigned
            amanukya@redhat.com Anna Manukyan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: