[ https://issues.apache.org/jira/browse/HDDS-4391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arpit Agarwal reassigned HDDS-4391: ----------------------------------- Assignee: Bharat Viswanadham > UnixPath.toUri() is expensive > ----------------------------- > > Key: HDDS-4391 > URL: https://issues.apache.org/jira/browse/HDDS-4391 > Project: Hadoop Distributed Data Store > Issue Type: Improvement > Components: Ozone Manager > Affects Versions: 1.0.0 > Reporter: Wei-Chiu Chuang > Assignee: Bharat Viswanadham > Priority: Major > Attachments: Screen Shot 2020-10-20 at 12.34.52 PM.png > > > OM makes call this API to look up a key. > This call accounts for 20% (give or take) of OM request handler overhead. > Would be great if we can get rid of this call. > !Screen Shot 2020-10-20 at 12.34.52 PM.png! > OMClientRequest.java > {code:java} > @SuppressFBWarnings("DMI_HARDCODED_ABSOLUTE_FILENAME") > public static String validateAndNormalizeKey(String keyName) > throws OMException { > String normalizedKeyName; > if (keyName.startsWith(OM_KEY_PREFIX)) { > normalizedKeyName = Paths.get(keyName).toUri().normalize().getPath(); > } else { > normalizedKeyName = Paths.get(OM_KEY_PREFIX, keyName).toUri() > .normalize().getPath(); > } {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org