1. 21 Mar, 2015 3 commits
    • antirez's avatar
      Cluster: refactoring around configEpoch handling. · 0595420b
      antirez authored
      This commit moves the process of generating a new config epoch without
      consensus out of the clusterCommand() implementation, in order to make
      it reusable for other reasons (current target is to have a CLUSTER
      FAILOVER option forcing the failover when no master majority is
      reachable).
      
      Moreover the commit moves other functions which are similarly related to
      config epochs in a new logical section of the cluster.c file, just for
      clarity.
      0595420b
    • antirez's avatar
      Fix typo in beforeSleep() comment. · 2d34ec60
      antirez authored
      2d34ec60
    • antirez's avatar
      Net: clientsArePaused() should not touch blocked clients. · 2d7d75ad
      antirez authored
      When the list of unblocked clients were processed, btype was set to
      blocking type none, but the client remained flagged with REDIS_BLOCKED.
      When timeout is reached (or when the client disconnects), unblocking it
      will trigger an assertion.
      
      There is no need to process pending requests from blocked clients, so
      now clientsArePaused() just avoid touching blocked clients.
      
      Close #2467.
      2d7d75ad
  2. 20 Mar, 2015 3 commits
    • antirez's avatar
      Redis 2.9.105 (3.0.0 Release Candidate 5) · 8dac5c8b
      antirez authored
      8dac5c8b
    • antirez's avatar
      Cluster: better cluster state transiction handling. · 62893f5b
      antirez authored
      Before we relied on the global cluster state to make sure all the hash
      slots are linked to some node, when getNodeByQuery() is called. So
      finding the hash slot unbound was checked with an assertion. However
      this is fragile. The cluster state is often updated in the
      clusterBeforeSleep() function, and not ASAP on state change, so it may
      happen to process clients with a cluster state that is 'ok' but yet
      certain hash slots set to NULL.
      
      With this commit the condition is also checked in getNodeByQuery() and
      reported with a identical error code of -CLUSTERDOWN but slightly
      different error message so that we have more debugging clue in the
      future.
      
      Root cause of issue #2288.
      62893f5b
    • antirez's avatar
      Cluster: move clusterBeforeSleep() call before unblocked clients processing. · 585f68ac
      antirez authored
      Related to issue #2288.
      585f68ac
  3. 18 Mar, 2015 11 commits
  4. 13 Mar, 2015 1 commit
    • Leandro López (inkel)'s avatar
      Support CLIENT commands in Redis Sentinel · b10c2b7b
      Leandro López (inkel) authored
      When trying to debug sentinel connections or max connections errors it
      would be very useful to have the ability to see the list of connected
      clients to a running sentinel. At the same time it would be very helpful
      to be able to name each sentinel connection or kill offending clients.
      
      This commits adds the already defined CLIENT commands back to Redis
      Sentinel.
      b10c2b7b
  5. 08 Mar, 2015 1 commit
  6. 04 Mar, 2015 1 commit
    • antirez's avatar
      Fix iterator for issue #2438. · 45ff739c
      antirez authored
      Itereator misuse due to analyzeLatencyForEvent() accessing the
      dictionary during the iteration, without the iterator being
      reclared as safe.
      45ff739c
  7. 27 Feb, 2015 1 commit
  8. 26 Feb, 2015 2 commits
    • antirez's avatar
      Improvements to PR #2425 · 53659404
      antirez authored
      1. Remove useless "cs" initialization.
      2. Add a "select" var to capture a condition checked multiple times.
      3. Avoid duplication of the same if (!copy) conditional.
      4. Don't increment dirty if copy is given (no deletion is performed),
         otherwise we propagate MIGRATE when not needed.
      53659404
    • Salvatore Sanfilippo's avatar
      Merge pull request #2425 from twang817/migrateCacheDbid · 968ce964
      Salvatore Sanfilippo authored
      Add last_dbid to migrateCachedSocket to avoid redundant SELECT
      968ce964
  9. 25 Feb, 2015 1 commit
  10. 13 Feb, 2015 2 commits
  11. 12 Feb, 2015 4 commits
  12. 11 Feb, 2015 10 commits