question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

zset zrangebyscore

See original GitHub issue

Bug 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:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mp911decommented, Oct 15, 2018

Thanks for your feedback. Closing this one as solved.

0reactions
mp911decommented, Oct 16, 2018

@yinbingqiu Please do not resurrect closed issues for other purposes. Please post your question to Stackoverflow.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found