-
- Downloads
[SPARK-18066][CORE][TESTS] Add Pool usage policies test coverage for FIFO & FAIR Schedulers
## What changes were proposed in this pull request? The following FIFO & FAIR Schedulers Pool usage cases need to have unit test coverage : - FIFO Scheduler just uses **root pool** so even if `spark.scheduler.pool` property is set, related pool is not created and `TaskSetManagers` are added to **root pool**. - FAIR Scheduler uses `default pool` when `spark.scheduler.pool` property is not set. This can be happened when - `Properties` object is **null**, - `Properties` object is **empty**(`new Properties()`), - **default pool** is set(`spark.scheduler.pool=default`). - FAIR Scheduler creates a **new pool** with **default values** when `spark.scheduler.pool` property points a **non-existent** pool. This can be happened when **scheduler allocation file** is not set or it does not contain related pool. ## How was this patch tested? New Unit tests are added. Author: erenavsarogullari <erenavsarogullari@gmail.com> Closes #15604 from erenavsarogullari/SPARK-18066.
Showing
- core/src/main/scala/org/apache/spark/scheduler/SchedulableBuilder.scala 5 additions, 2 deletions...scala/org/apache/spark/scheduler/SchedulableBuilder.scala
- core/src/test/scala/org/apache/spark/scheduler/PoolSuite.scala 91 additions, 6 deletions...src/test/scala/org/apache/spark/scheduler/PoolSuite.scala
Please register or sign in to comment