Option -DredisBinary is no longer valid
envgap__redisson__redisson-5456
01 / FAILURE SIGNATURE
As reported upstream
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.053 s <<< FAILURE! -- in org.redisson.RedissonCountDownLatchConcurrentTest
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
4ad13b9cc87fa6a3c562d0c33072bc300eefa26b- Manifest
redisson/pom.xml- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
redisson/redisson #5456 · read the original issue
https://github.com/redisson/redisson/blame/4ad13b9cc87fa6a3c562d0c33072bc300eefa26b/.github/CONTRIBUTING.md#L19
I saw:
```java
public static final String redisBinaryPath = System.getProperty("redisBinary", installPathByOS());
```
But `mvn -DargLine="-Xmx2g -DredisBinary=/opt/homebrew/bin/redis-server" -Punit-test clean test -e ` gives:
```
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.053 s <<< FAILURE! -- in org.redisson.RedissonCountDownLatchConcurrentTest
[ERROR] org.redisson.RedissonCountDownLatchConcurrentTest -- Time elapsed: 0.053 s <<< ERROR!
java.io.IOException: Cannot run program "/usr/local/opt/redis/bin/redis-server" (in directory "/var/folders/ts/160w4k_j5mv5bjk9rnjkzjpm0000gn/T"): error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at org.redisson.RedisRunner.runWithOptions(RedisRunner.java:241)
at org.redisson.RedisRunner.runAndCheck(RedisRunner.java:291)
at org.redisson.RedisRunner.run(RedisRunner.java:266)
at org.redisson.RedisRunner.startDefaultRedisServerInstance(RedisRunner.java:1029)
at org.redisson.RedissonCountDownLatchConcurrentTest.beforeClass(RedissonCountDownLatchConcurrentTest.java:18)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 8 more
```
while change `redisBinaryPath =` in code works. I suspect there is some arguments passing issues.
Background - I'm trying to test Apache Kvrocks (a Redis alternative) with Redisson's tests (https://github.com/apache/kvrocks/discussions/1912)04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]