Tsz-wo Sze created HDDS-8750:
--------------------------------
Summary: ContainerKeyPrefixCodec and ContainerKeyPrefixCodec are
inconsistent
Key: HDDS-8750
URL: https://issues.apache.org/jira/browse/HDDS-8750
Project: Apache Ozone
Issue Type: Sub-task
Reporter: Tsz-wo Sze
Assignee: Tsz-wo Sze
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}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]