You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ScoredValueStreamingOutput does not appear to be handling the 'inf' score (as Java only parses 'Infinity'). This bug occurred on 4.3.1.Final, and appears to exist in later builds as well (unless something rewrites the byte[] internally, but I haven't tested it, so it's all speculation at this point).
To reproduce, I suppose all you'd need to do is to add an entry to a sorted set with score Double.POSITIVE_INFINITY, and try to grab it through zrangebyscoreWithScores(ScoredValueStreamingChannel<V>, K, Range<? extends Number> range)
// connection is a StatefulRedisConnection<String, String> field
final String KEY = "foo";
this.connection.sync().zadd(KEY, Double.POSITIVE_INFINITY, "bar");
RedisAsyncCommands<String, String> asyncRedis = this.connection.async();
Range<Double> range = Range.from(Range.Boundary.including((double) System.currentTimeMillis()),
Range.Boundary.including(Double.POSITIVE_INFINITY));
asyncRedis.zrangebyscoreWithScores(entry -> {
// TODO: fill
}, KEY, range);
The text was updated successfully, but these errors were encountered:
Lettuce now parses positive and negative infinite scores correctly. Infinite scores are received as inf and -inf that require appropriate transformation instead of parsing the floating point value.
Previously parsing caused NumberFormatException.
Lettuce now parses positive and negative infinite scores correctly. Infinite scores are received as inf and -inf that require appropriate transformation instead of parsing the floating point value.
Previously parsing caused NumberFormatException.
Lettuce now parses positive and negative infinite scores correctly. Infinite scores are received as inf and -inf that require appropriate transformation instead of parsing the floating point value.
Previously parsing caused NumberFormatException.
Thanks a lot for the ticket. It contains exactly the details required to reproduce and fix the issue. The issue is fixed now in the 4.3.3, 4.4 and 5.0 branches.
ScoredValueStreamingOutput does not appear to be handling the 'inf' score (as Java only parses 'Infinity'). This bug occurred on 4.3.1.Final, and appears to exist in later builds as well (unless something rewrites the byte[] internally, but I haven't tested it, so it's all speculation at this point).
stack trace
To reproduce, I suppose all you'd need to do is to add an entry to a sorted set with score
Double.POSITIVE_INFINITY
, and try to grab it throughzrangebyscoreWithScores(ScoredValueStreamingChannel<V>, K, Range<? extends Number> range)
The text was updated successfully, but these errors were encountered: