You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Varsha Ravi (Jira)" <ji...@apache.org> on 2023/09/14 04:07:00 UTC
[jira] [Assigned] (HDDS-8648) Improve OmKeyInfo.Builder usage
[ https://issues.apache.org/jira/browse/HDDS-8648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Varsha Ravi reassigned HDDS-8648:
---------------------------------
Assignee: Varsha Ravi
> Improve OmKeyInfo.Builder usage
> -------------------------------
>
> Key: HDDS-8648
> URL: https://issues.apache.org/jira/browse/HDDS-8648
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Wei-Chiu Chuang
> Assignee: Varsha Ravi
> Priority: Trivial
>
> OMFileRequest.getOmKeyInfo() and getDirectoryInfo() are not written in a good style.
> [https://github.com/apache/ozone/blob/bd900ae9db8abf819b28a29551cff87259700afc/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMFileRequest.java#L714-L730]
>
> It should be written in the style of:
> {code:java}
> OmKeyInfo.Builder builder = new OmKeyInfo.Builder();
> builder.setParentObjectID(dirInfo.getParentObjectID())
> .setKeyName(keyName)
> .setAcls(dirInfo.getAcls())
> ....{code}
>
> [~targetoee] [~Aaron6112080] if you are interested in picking this up.
--
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