[
https://issues.apache.org/jira/browse/HDDS-8750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze updated HDDS-8750:
-----------------------------
Summary: In ContainerKeyPrefixCodec, toPersistedFormat(..) and
fromPersistedFormat(..) are not consistent. (was: ContainerKeyPrefixCodec
cannot deserialize some messages it serialized.)
> In ContainerKeyPrefixCodec, toPersistedFormat(..) and fromPersistedFormat(..)
> are not consistent.
> -------------------------------------------------------------------------------------------------
>
> Key: HDDS-8750
> URL: https://issues.apache.org/jira/browse/HDDS-8750
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: Ozone Recon
> Reporter: Tsz-wo Sze
> Assignee: Tsz-wo Sze
> Priority: Major
>
> The following change to the test will cause failure.
> {code}
> +++
> b/hadoop-ozone/recon/src/test/java/org/apache/hadoop/ozone/recon/TestReconCodecs.java
> @@ -35,7 +35,7 @@ public class TestReconCodecs {
> @Test
> public void testContainerKeyPrefixCodec() throws IOException {
> ContainerKeyPrefix containerKeyPrefix = ContainerKeyPrefix.get(
> - System.currentTimeMillis(), "TestKeyPrefix", 0);
> + System.currentTimeMillis(), "TestKeyPrefix", -1);
>
> Codec<ContainerKeyPrefix> codec = ContainerKeyPrefixCodec.get();
> byte[] persistedFormat = codec.toPersistedFormat(containerKeyPrefix);
> {code}
> KeyPrefixContainerCodec will also fail with a similar test.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]