diff options
author | erenavsarogullari <erenavsarogullari@gmail.com> | 2017-03-15 15:57:51 -0700 |
---|---|---|
committer | Kay Ousterhout <kayousterhout@gmail.com> | 2017-03-15 15:57:51 -0700 |
commit | 046b8d4aef00b0701cf7e4b99aeaf450cacb42fe (patch) | |
tree | 42736e59c3c3db5ec4a16501b5d91c904dc807be /sql | |
parent | 54a3697f1fb562ef9ed8fed9caffc62b84763049 (diff) | |
download | spark-046b8d4aef00b0701cf7e4b99aeaf450cacb42fe.tar.gz spark-046b8d4aef00b0701cf7e4b99aeaf450cacb42fe.tar.bz2 spark-046b8d4aef00b0701cf7e4b99aeaf450cacb42fe.zip |
[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.
Diffstat (limited to 'sql')
0 files changed, 0 insertions, 0 deletions