You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Sammi Chen (Jira)" <ji...@apache.org> on 2023/10/27 03:42:00 UTC

[jira] [Updated] (HDDS-8745) Let ConfigType.TIME apply to Duration

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

Sammi Chen updated HDDS-8745:
-----------------------------
    Fix Version/s: 1.4.0
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

> Let ConfigType.TIME apply to Duration
> -------------------------------------
>
>                 Key: HDDS-8745
>                 URL: https://issues.apache.org/jira/browse/HDDS-8745
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: common
>            Reporter: Attila Doroszlai
>            Assignee: Attila Doroszlai
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.4.0
>
>
> {{ConfigType.TIME}} is used for {{long}} member variables.  To improve type safety, several config classes have accessor/mutator that return/accept {{Duration}}.  This results in unnecessary conversions back and forth between {{Duration}} and {{long}}.
> We should allow setting {{ConfigType.TIME}} on {{Duration}} field directly.



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