Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RO_zremrangebyscore#getStartScore does not work for negative scores #116

Closed
xcronic opened this issue May 7, 2021 · 2 comments
Closed

Comments

@xcronic
Copy link

xcronic commented May 7, 2021

"-1".charAt(0) = '-'
AND
java.lang.Character#isDigit('-') = false
==>
ERROR com.github.fppt.jedismock.operations.RO_exec - ERROR during committing transaction
com.github.fppt.jedismock.exception.WrongValueTypeException: Valid start must be a number or start with '(' or be equal to '-inf'
at com.github.fppt.jedismock.operations.RO_zremrangebyscore.getStartScore(RO_zremrangebyscore.java:79) ~[jedis-mock-0.1.18.jar:?]
at com.github.fppt.jedismock.operations.RO_zremrangebyscore.response(RO_zremrangebyscore.java:36) ~[jedis-mock-0.1.18.jar:?]
at com.github.fppt.jedismock.operations.AbstractRedisOperation.execute(AbstractRedisOperation.java:47) ~[jedis-mock-0.1.18.jar:?]
at com.github.fppt.jedismock.operations.RO_zremrangebyscore.execute(RO_zremrangebyscore.java:18) ~[jedis-mock-0.1.18.jar:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) ~[?:?]
at com.github.fppt.jedismock.operations.RO_exec.execute(RO_exec.java:25) [jedis-mock-0.1.18.jar:?]
at com.github.fppt.jedismock.server.RedisOperationExecutor.execCommand(RedisOperationExecutor.java:36) [jedis-mock-0.1.18.jar:?]
at com.github.fppt.jedismock.server.RedisClient.run(RedisClient.java:54) [jedis-mock-0.1.18.jar:?]

@inponomarev
Copy link
Collaborator

Already noticed this! This will be fixed soon in the next release together with ZRANGEBYSCORE implementation.

@inponomarev
Copy link
Collaborator

the fix is to be included in 0.1.19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants