1. 10 7月, 2018 4 次提交
    • A
      Streams: fix new XREADGROUP sync logic. · a8c1bb31
      antirez 提交于
      a8c1bb31
    • A
      Streams: make blocking for > a truly special case. · 1a02b5f6
      antirez 提交于
      To simplify the semantics of blocking for a group, this commit changes
      the implementation to better match the description we provide of
      conusmer groups: blocking for > will make the consumer waiting for new
      elements in the group. However blocking for any other ID will always
      serve the local history of the consumer.
      
      However it must be noted that the > ID is actually an alias for the
      special ID ms/seq of UINT64_MAX,UINT64_MAX.
      1a02b5f6
    • A
      Streams: send an error to consumers blocked on non-existing group. · a71e8148
      antirez 提交于
      To detect when the group (or the whole key) is destroyed to send an
      error to the consumers blocked in such group is a problem, so we leave
      the consumers listening, the sysadmin is free to create or destroy
      groups assuming she/he knows what to do. However a client may be blocked
      in a given consumer group, that is later destroyed. Then the stream
      receives new elements. In that case there is no sane behavior to serve
      the consumer... but to report an error about the group no longer
      existing.
      
      More about detecting this synchronously and why it is not done:
      
      1. Normally we don't do that, we leave clients blocked for other data
      types such as lists.
      
      2. When we free a stream object there is no longer information about
      what was the key it was associated with, so while destroying the
      consumer groups we miss the info to unblock the clients in that moment.
      
      3. Objects can be reclaimed in other threads where it is no longer safe
      to do client operations.
      a71e8148
    • A
      Streams: fix unblocking logic into a consumer group. · 09327f11
      antirez 提交于
      When a client blocks for a consumer group, we don't know the actual ID
      we want to be served: other clients blocked in the same consumer group
      may be served first, so the consumer group latest delivered ID changes.
      This was not handled correctly, all the clients in the consumer group
      were unblocked without data but the first.
      09327f11
  2. 09 7月, 2018 7 次提交
  3. 04 7月, 2018 13 次提交
  4. 03 7月, 2018 10 次提交
  5. 02 7月, 2018 2 次提交
  6. 01 7月, 2018 1 次提交
  7. 30 6月, 2018 3 次提交