You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2023/06/03 03:39:00 UTC
[jira] [Updated] (HDDS-8750) ContainerKeyPrefixCodec cannot deserialize some messages it serialized.
[ https://issues.apache.org/jira/browse/HDDS-8750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz-wo Sze updated HDDS-8750:
-----------------------------
Summary: ContainerKeyPrefixCodec cannot deserialize some messages it serialized. (was: ContainerKeyPrefixCodec and KeyPrefixContainerCodec are inconsistent)
> ContainerKeyPrefixCodec cannot deserialize some messages it serialized.
> -----------------------------------------------------------------------
>
> 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org