Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-10355

Refactor NM ContainerLaunch.java#orderEnvByDependencies

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • yarn
    • Reviewed

    Description

      TheĀ org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch#orderEnvByDependencies and it's helper methodĀ {{getEnvDependencies }}(together with the overrides) is hard to read. Some improvements could be made:

      • use Pattern matching in the overrides of getEnvDependencies instead of iterating through the environmental variable strings char by char
      • the unit tests contains a lot of repeated code and generally the test methods are long - they could be separated into different setup/helper and assertion methods

      Attachments

        Issue Links

          Activity

            People

              tdomok Tamas Domok
              bteke Benjamin Teke
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6h
                  6h