Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.4.0
-
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
- is related to
-
YARN-10874 Refactor NM ContainerLaunch#getEnvDependencies's unit tests
- Resolved
- links to