Timeout performing SCAN

getting "Timeout executing SCAN, inst: 0, mgr: ExecuteSelect, queue: 1, qu = 1, qs = 0, qc = 0, wr = 0/1, in = 0/0" when requesting keys on Redis

Don't know why this is happening?

public void DeleteKeys(string pattern)
{
    try
    {
        EndPoint[] endPoints = m_connectionMultiplexer.GetEndPoints();
        foreach (EndPoint endPoint in endPoints)
        {
            IServer server = m_connectionMultiplexer.GetServer(endPoint);
            RedisValue redisValue = pattern;
            IEnumerable<RedisKey> redisKeys = server.Keys(0, redisValue);
            foreach (RedisKey redisKey in redisKeys)
            {
                m_connectionMultiplexer.GetDatabase().KeyDelete(redisKey);
            }  
        }

    }
    catch (Exception ex)
    {
        m_logger.Exception(ex);
    }
}

      

+3


source to share


1 answer


This particular combination of status flags tells me that one command (specifically:) scan

gets stuck in an unsent queue, and while it knows that a write is required, no author is active. Do you have a full reproduction? This is probably better than a bug.



+1


source







All Articles