Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-872 Uber jira for HMS HA + Sentry HA redesign
  3. SENTRY-1698

PathsUpdate.parsePath() calls FileSystem.getDefaultUri() way too often

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8.0, 2.0.0
    • 2.0.0
    • Sentry

    Description

      The PathsUpdate#parsePath() method has the following 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);
      

      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.

      Attachments

        1. SENTRY-1698.001.patch
          6 kB
          Alex Kolbasov

        Issue Links

          Activity

            People

              akolb Alex Kolbasov
              akolb Alex Kolbasov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: