You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2025/03/05 09:22:00 UTC

[jira] [Commented] (HDDS-12477) Do not force RATIS/ONE replication in TestDataUtil#createKey

    [ https://issues.apache.org/jira/browse/HDDS-12477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17932565#comment-17932565 ] 

Attila Doroszlai commented on HDDS-12477:
-----------------------------------------

[~chiacyu] please let me know if you are interested in continuing work on {{TestDataUtil}}.

> 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
>            Priority: Major
>
> 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org