[JBoss JIRA] (JBTM-3272) The test for reading old records should only run against filesystem stores
by Michael Musgrove (Jira)
[ https://issues.redhat.com/browse/JBTM-3272?page=com.atlassian.jira.plugin... ]
Michael Musgrove updated JBTM-3272:
-----------------------------------
Description:
The test (com.hp.mwtests.ts.arjuna.objectstore.TestJBTM3262) was added while fixing https://issues.redhat.com/browse/JBTM-3262 in order to verify that records written with the old string serialization code could be read by later revisions of that code. Since the same string serialization code is used for all store types we only need to test against a single store type (adding the same test for all store types would be overkill).
The test is coded to work with stores that inherit from ObjectStore (such as ShadowNoFileLockStore) but it fails with some store types such as the JDBCStore with the error:
bq. TestJBTM3249.test:86 com.arjuna.ats.internal.arjuna.objectstore.jdbc.JDBCStore cannot be cast to com.arjuna.ats.arjuna.objectstore.ObjectStore
was:
The test (com.hp.mwtests.ts.arjuna.objectstore.TestJBTM3249) was added while fixing JBTM3249 to verify that records in the old format could still be read by the latest code. The test only needs to be verified against file based stores (since the same
fails with the JDBCStore:
bq. TestJBTM3249.test:86 com.arjuna.ats.internal.arjuna.objectstore.jdbc.JDBCStore cannot be cast to com.arjuna.ats.arjuna.objectstore.ObjectStore
> The test for reading old records should only run against filesystem stores
> --------------------------------------------------------------------------
>
> Key: JBTM-3272
> URL: https://issues.redhat.com/browse/JBTM-3272
> Project: JBoss Transaction Manager
> Issue Type: Bug
> Components: Transaction Core
> Affects Versions: 5.10.3.Final
> Reporter: Michael Musgrove
> Priority: Major
> Fix For: 5.next
>
>
> The test (com.hp.mwtests.ts.arjuna.objectstore.TestJBTM3262) was added while fixing https://issues.redhat.com/browse/JBTM-3262 in order to verify that records written with the old string serialization code could be read by later revisions of that code. Since the same string serialization code is used for all store types we only need to test against a single store type (adding the same test for all store types would be overkill).
> The test is coded to work with stores that inherit from ObjectStore (such as ShadowNoFileLockStore) but it fails with some store types such as the JDBCStore with the error:
> bq. TestJBTM3249.test:86 com.arjuna.ats.internal.arjuna.objectstore.jdbc.JDBCStore cannot be cast to com.arjuna.ats.arjuna.objectstore.ObjectStore
--
This message was sent by Atlassian Jira
(v7.13.8#713008)