linkedin / linkedin/dr-elephant

PSOParamGeneratorTest test failure

Open
#341 4 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.