getting "Timeout performing SCAN, inst: 0, mgr: ExecuteSelect, queue: 1, qu=1, qs=0, qc=0, wr=0/1, in=0/0" while asking for keys on redis
Have no idea why it 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);
}
}
That particular combination of status flags tells me that one command (specifically: scan
) is stuck in the unsent queue, and while it knows a writer is needed, no writer is active. Do you have a full repro? This is probably better raised as a bug.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With