Note that there are some explanatory texts on larger screens.

plurals
  1. POServiceStack.Redis throwing random errors when executing several updates in a transaction
    primarykey
    data
    text
    <p>I have some code that is looping through a list of updates to apply to a number of Redis hashes, which for the most part works well. The catch is, that every once in a while I get an error such as the following:</p> <blockquote> <p>ServiceStack.Redis.RedisResponseException: unknown command '1234:date:20130909:daily', sPort: 34527, LastCommand: at ServiceStack.Redis.RedisNativeClient.CreateResponseError (System.String error) [0x00000] in :0 at ServiceStack.Redis.RedisNativeClient.ExpectWord (System.String word) [0x00000] in :0 at ServiceStack.Redis.RedisNativeClient.ExpectQueued () [0x00000] in :0 at ServiceStack.Redis.Pipeline.QueuedRedisOperation.ProcessResult () [0x00000] in :0</p> </blockquote> <p>I'm not sure if this is actually a glitch on the Redis side, or the client/driver, but something is definitely getting crossed up in the request/response.</p> <p>here is some example code of what I'm trying to do:</p> <pre><code>using (var redisClient = redisClientManager.GetClient()) { using (var multi = redisClient.CreateTransaction()) { foreach (var originalHashValue in hashDictionary) { multi.QueueCommand( r =&gt; r.IncrementValueInHash(hash, originalHashValue.Key, originalHashValue.Value)); } var redisUpdateResult = multi.Commit(); } } </code></pre> <p>The code is pretty simple, and the result isn't consistent, so i'm not sure what to think on this one. </p> <p>I'm using the latest stable redis, over a GigE LAN connection.</p> <ul> <li>redis_version:2.6.16</li> <li>less than .2ms ping between the boxes</li> <li>"mtr" shows its a consistent/solid connection</li> </ul> <p>Thoughts?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload