zset zrangebyscore
See original GitHub issueBug Report
In some environments zrangebyscore(zSetKey, range).get(WAIT_TIME, TimeUnit.SECONDS)
is not responding
Current Behavior
In the development environment and test environment, the program is normal. But there is no response in the production environment
code(java)
StatefulRedisClusterConnection<String, String> connection = null;
try {
connection = lettucePool.acquire().get(WAIT_TIME, TimeUnit.SECONDS);
RedisAdvancedClusterAsyncCommands<String, String> command = connection.async();
// no response
List<String> expireKeyList = command.zrangebyscore(zSetKey, range).get(WAIT_TIME, TimeUnit.SECONDS);
return doDeleteKey(command, zSetKey, expireKeyList);
} catch (Exception e) {
log.error(e.getMessage(), e);
return false;
} finally {
if (connection != null) {
IndicatorUtil.releaseConnection(lettucePool, connection);
}
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
ZRANGEBYSCORE | Redis
Normally ZRANGEBYSCORE is simply used in order to get range of items where the score is the indexed integer key, however it is...
Read more >1.2.5 Sorted sets in Redis
We can fetch all of the items in the ZSET, which are ordered by the scores, and scores are turned into floats in...
Read more >ZRANGEBYSCORE
ZRANGEBYSCORE zset (1 5. Will return all elements with 1 < score <= 5 while: ZRANGEBYSCORE zset (5 (10. Will return all the...
Read more >Guides on the Redis Zset and How to Use it | ObjectRocket
You can add, delete, and retrieve members and scores in sorted ZSETS with ease and by using ZADD , ZRANGE , ZRANGEBYSCORE ,...
Read more >RedisSortedSetCommands (Lettuce 6.2.1.RELEASE API)
Return a range of members in a sorted set, by score. List<V>, zrangebyscore(K key, String min, String max). Deprecated.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for your feedback. Closing this one as solved.
@yinbingqiu Please do not resurrect closed issues for other purposes. Please post your question to Stackoverflow.