[
https://issues.apache.org/jira/browse/HDDS-12477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai resolved HDDS-12477.
-------------------------------------
Fix Version/s: 2.0.0
Resolution: Implemented
> Do not force RATIS/ONE replication in TestDataUtil#createKey
> ------------------------------------------------------------
>
> Key: HDDS-12477
> URL: https://issues.apache.org/jira/browse/HDDS-12477
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: test
> Reporter: Attila Doroszlai
> Assignee: Chia-Chuan Yu
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.0.0
>
>
> Improve {{TestDataUtil#createKey}} to avoid the need to pass
> {{ReplicationConfig}} unnecessarily.
> - Allow {{TestDataUtil#createKey(OzoneBucket, String, ReplicationConfig,
> byte[])}} to be called with {{repConfig=null}}, in which case it should
> create the key using {{OzoneBucket#createKey(String, long)}}
> - Change {{createKey(OzoneBucket, String, byte[])}} to pass {{null}} instead
> of {{RATIS/ONE}}
> - Tests that call {{createKey(OzoneBucket, String, byte[])}} and start
> failing should be changed to pass RATIS/ONE explicitly.
> - Change callers of {{TestDataUtil#createKey(OzoneBucket, String,
> ReplicationConfig, byte[])}} to not pass {{ReplicationConfig}}, unless
> necessary for the 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]