Uploaded image for project: 'Slider'
  1. Slider
  2. SLIDER-1079

Cache MetaInfo for AgentClientProvider

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Slider 0.81, Slider 0.90.2
    • Fix Version/s: Slider 0.91
    • Component/s: client
    • Labels:
      None

      Description

      During app creation, the slider client calls AgentUtils.getApplicationMetainfo() 3 times. Each time this function actually download the whole app package from HDFS. If the app package is big, this is rather inefficient.

      The 3 places are:
      1) SliderClient.actionBuild() -> AgentClientProvider.validateInstanceDefinition()
      2) AgentClientProvider.getApplicagionTags()
      3) AgentClientProvider.validateInstanceDefinition()

      We should cache the metainfo object in AgentClientProvider.

        Attachments

        1. SLIDER-1079.patch
          3 kB
          shanyu zhao
        2. SLIDER-1079.1.patch
          3 kB
          shanyu zhao

          Activity

            People

            • Assignee:
              shanyu shanyu zhao
              Reporter:
              shanyu shanyu zhao
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: