Bug 1391044

Summary: JdbcUpgradeTool fails with "ISPN000242: Missing foreign externalizer with id=1100"
Product: [JBoss] JBoss Data Grid 6 Reporter: Gustavo Fernandes <gfernand>
Component: InfinispanAssignee: Tristan Tarrant <ttarrant>
Status: MODIFIED --- QA Contact: Martin Gencur <mgencur>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.6.1CC: jdg-bugs, wfink
Target Milestone: ---   
Target Release: 6.6.2   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Gustavo Fernandes 2016-11-02 13:18:03 UTC
Description of problem:


Version-Release number of selected component (if applicable):

JDG 6.6.x

How reproducible:

Always

Steps to Reproduce:
1) Start JDG 6.1 server with a JdbcStringBasedCacheStore 
2) Write some data to a cache

3) Download https://developers.redhat.com/download-manager/file/jboss-datagrid-6.6.0-jdbc-migrator-from-jboss-datagrid-6.1.zip

4) Run the migration tool following instructions on the README.

Actual results:

Exception thrown:
Error: ISPN000242: Missing foreign externalizer with id=1100, either externalizer was not configured by client, or module lifecycle implementation adding externalizer was not loaded properly

Expected results:

The destination table specified in the configuration file is populated with the migrated data.

Additional info:

Comment 2 Gustavo Fernandes 2016-11-02 13:31:01 UTC
JDG 6.1 server, in order to write to the cache store, wraps the cache value into a o.i.server.core.CacheValue object that contains the byte[] and a version number for the entry. The externalizer for CacheValue has id 1100.

JDG 6.6 does not use CacheValue anymore so when reading something persisted with JDG 6.1 server cannot unmarshall CacheValue objects