[ https://issues.apache.org/jira/browse/SENTRY-1698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Kolbasov updated SENTRY-1698: --------------------------------------- Attachment: (was: SENTRY-1698.001.patch) > PathsUpdate.parsePath() calls FileSystem.getDefaultUri() way too often > ---------------------------------------------------------------------- > > Key: SENTRY-1698 > URL: https://issues.apache.org/jira/browse/SENTRY-1698 > Project: Sentry > Issue Type: Bug > Components: Sentry > Affects Versions: 1.8.0, sentry-ha-redesign > Reporter: Alexander Kolbasov > Assignee: Alexander Kolbasov > Labels: bite-sized, newbie > Attachments: SENTRY-1698.001.patch > > > The PathsUpdate#parsePath() method has the following code: > {code} > String scheme = uri.getScheme(); > if (scheme == null) { > // Use the default URI scheme only if the path has no scheme. > URI defaultUri = FileSystem.getDefaultUri(CONF); > {code} > The default URI never changes so there is no need to call > FileSystem.getDefaultUri(CONF) for each input string which doesn't have URI. > This should be done once in constructor. -- This message was sent by Atlassian JIRA (v6.3.15#6346)