e89941fdbb3b382eeb487d32e5194909610ac334
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 2
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Rename Method | 1 | ||
| Rename Method public testRelaxLocalityToNotPreemptAM() : void renamed to public testRelaxLocalityPreemptionWithLessAMInRemainingNodes() : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption | From | To | |
| Parameterize Variable | 1 | ||
| Parameterize Variable node1 : RMNode to node : RMNode in method private updateRelaxLocalityRequestSchedule(node RMNode, nodeMemory int, numNodeContainers int) : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption | From | To | |
| Extract Variable | 1 | ||
| Extract Variable spareContainers : PreemptableContainers in method private getBestPreemptableContainers(rr ResourceRequest, potentialNodes List<FSSchedulerNode>) : PreemptableContainers from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread | From | To | |
| Extract Method | 5 | ||
| Extract Method private setNumAMContainersOnNode(num int, nodeId NodeId) : void extracted from private setAllAMContainersOnNode(nodeId NodeId) : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption | From | To | |
| Extract Method private verifyRelaxLocalityPreemption(notBePreemptedNodeId NodeId, greedyAttemptId ApplicationAttemptId, numGreedyAppContainers int) : void extracted from public testRelaxLocalityToNotPreemptAM() : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption | From | To | |
| Extract Method private updateRelaxLocalityRequestSchedule(node RMNode, nodeMemory int, numNodeContainers int) : void extracted from public testRelaxLocalityToNotPreemptAM() : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption | From | To | |
| Extract Method private getBestPreemptableContainers(rr ResourceRequest, potentialNodes List<FSSchedulerNode>) : PreemptableContainers extracted from private identifyContainersToPreempt(starvedApp FSAppAttempt) : List<RMContainer> in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread | From | To | |
| Extract Method private getGreedyAppAttemptIdOnNode(nodeId NodeId) : ApplicationAttemptId extracted from public testRelaxLocalityToNotPreemptAM() : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption | From | To |