Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.4.0
-
Reviewed
Description
Context objects can be a sign of a code smell as they can contain many, possible loosely related references to other objects.
CapacitySchedulerContext seems like this.
This task is to investigate how the field AbstractCSQueue#csContext is being used from this class and possibly keeping the usage of this context class on the bare minimum.
Related article: https://wiki.c2.com/?ContextObjectsAreEvil
Attachments
Issue Links
- Dependent
-
YARN-11043 Clean up checkstyle warnings from YARN-11024/10907/10929
-
- Resolved
-
- is required by
-
YARN-10929 Do not use a separate config in legacy CS AQC
-
- Resolved
-
- requires
-
YARN-11024 Create an AbstractLeafQueue to store the common LeafQueue + AutoCreatedLeafQueue functionality
-
- Resolved
-
- links to