linkedin / linkedin/dr-elephant
PSOParamGeneratorTest test failure
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 839
- PR merge metrics
- No merged PRs in 30d
Description
Seeing the following test failure when running `play_command $OPTS clean test compile dist`:
```
[info] Total for test com.linkedin.drelephant.mapreduce.fetchers.MapReduceFSFetcherHadoop2Test
[info] Finished in 0.0 seconds
[info] 5 tests, 0 failures, 0 errors
[error] Test com.linkedin.drelephant.tuning.PSOParamGeneratorTest.getParamsTest failed: Swarm size did not match expected:<3> but was:<0>
[error] Test com.linkedin.drelephant.tuning.PSOParamGeneratorTest.generateParamSetTest failed: java.lang.RuntimeException: java.lang.NullPointerException
[error] at play.libs.Json.parse(Json.java:71)
[error] at com.linkedin.drelephant.tuning.PSOParamGeneratorTest$2.run(PSOParamGeneratorTest.java:111)
[error] at play.test.Helpers.running(Helpers.java:417)
[error] at com.linkedin.drelephant.tuning.PSOParamGeneratorTest.generateParamSetTest(PSOParamGeneratorTest.java:79)
[error] ...
[error] Caused by: java.lang.NullPointerException
[error] at com.fasterxml.jackson.core.JsonFactory.createParser(JsonFactory.java:822)
[error] at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2580)
[error] at play.libs.Json.parse(Json.java:69)
[error] ... 40 more
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the report with `play_command $OPTS clean test compile dist`, then inspect `PSOParamGeneratorTest.getParamsTest` and `generateParamSetTest`, especially the referenced lines 79 and 111. Done means both tests pass without the swarm-size mismatch or the JSON parsing NullPointerException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100