1. 20 Mar, 2015 1 commit
    • antirez's avatar
      Cluster: better cluster state transiction handling. · 25c0f5ac
      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.
      25c0f5ac
  2. 13 Jan, 2015 1 commit
    • antirez's avatar
      Cluster: clusterMsgDataGossip structure, explict padding + minor stuff. · 5b0f4a83
      antirez authored
      Also explicitly set version to 0, add a protocol version define, improve
      comments in the gossip structure.
      
      Note that the structure layout is the same after the change, we are just
      making the padding explicit with an additional not used 16 bits field.
      So this commit is still able to talk with the previous versions of
      cluster nodes.
      5b0f4a83
  3. 28 Nov, 2014 1 commit
    • antirez's avatar
      Cluster PUBLISH message: fix totlen count. · 669aa2a2
      antirez authored
      bulk_data field size was not removed from the count. It is not possible
      to declare it simply as 'char bulk_data[]' since the structure is nested
      into another structure.
      669aa2a2
  4. 07 Oct, 2014 1 commit
  5. 29 Sep, 2014 1 commit
    • Matt Stancliff's avatar
      Clean up text throughout project · 12d0195b
      Matt Stancliff authored
        - Remove trailing newlines from redis.conf
        - Fix comment misspelling
        - Clarifies zipEncodeLength usage and a C API mention (#1243, #1242)
        - Fix cluster typos (inspired by @papanikge #1507)
        - Fix rewite -> rewrite in a few places (inspired by #682)
      
      Closes #1243, #1242, #1507
      12d0195b
  6. 17 Sep, 2014 1 commit
  7. 25 Aug, 2014 1 commit
  8. 22 May, 2014 1 commit
  9. 27 Mar, 2014 1 commit
  10. 10 Mar, 2014 1 commit
    • antirez's avatar
      Cluster: better timeout and retry time for failover. · 0f1f2578
      antirez authored
      When node-timeout is too small, in the order of a few milliseconds,
      there is no way the voting process can terminate during that time, so we
      set a lower limit for the failover timeout of two seconds.
      
      The retry time is set to two times the failover timeout time, so it is
      at least 4 seconds.
      0f1f2578
  11. 07 Mar, 2014 1 commit
  12. 06 Mar, 2014 1 commit
  13. 25 Feb, 2014 1 commit
  14. 10 Feb, 2014 3 commits
  15. 05 Feb, 2014 2 commits
  16. 31 Jan, 2014 1 commit
  17. 29 Jan, 2014 2 commits
  18. 28 Jan, 2014 3 commits
  19. 29 Nov, 2013 2 commits
  20. 08 Nov, 2013 1 commit
  21. 09 Oct, 2013 2 commits