You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Siyao Meng (Jira)" <ji...@apache.org> on 2026/05/21 01:34:00 UTC

[jira] [Updated] (HDDS-14104) Refactor RequestContext creation

     [ https://issues.apache.org/jira/browse/HDDS-14104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Siyao Meng updated HDDS-14104:
------------------------------
    Fix Version/s: 2.1.1

> Refactor RequestContext creation
> --------------------------------
>
>                 Key: HDDS-14104
>                 URL: https://issues.apache.org/jira/browse/HDDS-14104
>             Project: Apache Ozone
>          Issue Type: Improvement
>            Reporter: Attila Doroszlai
>            Assignee: Jheng-Sing Chen
>            Priority: Major
>              Labels: GoodForNewContributors, pull-request-available
>             Fix For: 2.2.0, 2.1.1
>
>
> {{RequestContext}} has a Builder, but also:
> - multiple constructors, some with {{SuppressWarnings("parameternumber")}}
> - redundant {{getBuilder}} methods, which tests use as {{getBuilder(...).build()}}
> These defeat the purpose of the Builder, which is to avoid proliferation of constructor parameters and constructor variants.
> Changes in this task:
> - modify tests to use the Builder directly
> - add a test helper method which initializes the builder with test-specific default values to avoid duplication
> - delete {{getBuilder}} methods
> - replace existing constructors with one that takes a single {{Builder}}
> - make {{Builder()}} private



--
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