Commit e442a32
authored
YARN-11815: Fix NodeQueueLoadMonitor scheduler running on standby RMs (#7665)
* `NodeQueueLoadMonitor` runs as an active service
via `OpportunisticContainerAllocatorAMService` in
YARN Resource Manager.
* However, its scheduler thread is started in the
constructor itself.
* This would cause the scheduler to run on standby
RM too, which shouldn't be the case since it is an
active service.1 parent a4130c8 commit e442a32
File tree
3 files changed
+16
-14
lines changed- hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src
- main/java/org/apache/hadoop/yarn/server/resourcemanager
- scheduler/distributed
- test/java/org/apache/hadoop/yarn/server/resourcemanager
3 files changed
+16
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
376 | 384 | | |
377 | 385 | | |
378 | 386 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
| |||
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
281 | | - | |
282 | | - | |
283 | | - | |
| 282 | + | |
284 | 283 | | |
285 | 284 | | |
286 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
287 | 291 | | |
288 | 292 | | |
289 | 293 | | |
| |||
Lines changed: 1 addition & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
| 753 | + | |
764 | 754 | | |
765 | 755 | | |
766 | 756 | | |
| |||
0 commit comments