RHDG 8.2 StoreMigrator migration causes PersistenceException MalformedProtobufException invalid protobuf tag
Issue
When using the StoreMigrator
to migrate the cache store files from Data Grid 7.2 to v8.2.1, the following issue happens:
migrator.properties:
target.type=SINGLE_FILE_STORE
target.cache_name=assignedproductcache
target.location= <location>
source.type=SINGLE_FILE_STORE
source.cache_name=assignedproductcache
source.location=<location>
The error:
Exception in thread "main" org.infinispan.persistence.spi.PersistenceException: org.infinispan.protostream.MalformedProtobufException: Found an invalid protobuf tag (1) having a field number smaller than 1
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.unmarshall(MarshallableEntryImpl.java:248)
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.unmarshall(MarshallableEntryImpl.java:237)
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.getKey(MarshallableEntryImpl.java:70)
at org.infinispan.tools.store.migrator.StoreMigrator.run(StoreMigrator.java:111)
at org.infinispan.tools.store.migrator.StoreMigrator.main(StoreMigrator.java:138)
Caused by: org.infinispan.protostream.MalformedProtobufException: Found an invalid protobuf tag (1) having a field number smaller than 1
at org.infinispan.protostream.impl.TagReaderImpl$Decoder.readTag(TagReaderImpl.java:286)
at org.infinispan.protostream.impl.TagReaderImpl.readTag(TagReaderImpl.java:98)
at org.infinispan.protostream.WrappedMessage.readMessage(WrappedMessage.java:365)
at org.infinispan.protostream.WrappedMessage.read(WrappedMessage.java:351)
at org.infinispan.protostream.ProtobufUtil.fromWrappedByteArray(ProtobufUtil.java:129)
at org.infinispan.marshall.protostream.impl.AbstractInternalProtoStreamMarshaller.objectFromByteBuffer(AbstractInternalProtoStreamMarshaller.java:97)
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.unmarshall(MarshallableEntryImpl.java:246)
... 4 more
Environment
- Red Hat Data Grid (RHDG)
- 8.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.