Attila Doroszlai created HDDS-12477:
---------------------------------------
Summary: 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
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]