1. 27 Oct, 2020 1 commit
    • Angus Pearson's avatar
      Fix broken interval and repeat bahaviour in redis-cli (incluing cluster mode) · 10202ba1
      Angus Pearson authored
      This addresses two problems, one where infinite (negative) repeat count is broken for all types for Redis,
      and another specific to cluster mode where redirection is needed.
      
      Now allows and works correctly for negative (i.e. -1) repeat values passed with `-r` argument to redis-cli
      as documented here https://redis.io/topics/rediscli#continuously-run-the-same-command which seems to have
      regressed as a feature in 95b988 (though that commit removed bad integer wrap-around to `0` behaviour).
      
      This broken behaviour exists currently (e50458), and redis-cli will just exit immediately with repeat `-r <= 0`
      as opposed to send commands indefinitely as it should with `-r < 0`
      
      Additionally prevents a repeat * interval seconds hang/time spent doing nothing at the start before issuing
      commands in cluster mode (`-c`), where the command needed to redirect to a slot on another node, as commands
      where failing and waiting to be reissued but this was fully repeated before being reissued. For example,
      
              redis-cli -c -r 10 -i 0.5 INCR test_key_not_on_6379
      
      Would hang and show nothing for 5 seconds (10 * 0.5) before showing
      
              (integer) 1
              (integer) 2
              (integer) 3
              (integer) 4
              (integer) 5
              (integer) 6
              (integer) 7
              (integer) 8
              (integer) 9
              (integer) 10
      
      at half second intervals as intended.
      
      (cherry picked from commit 2f6ed933)
      10202ba1
  2. 04 Sep, 2019 1 commit
    • antirez's avatar
      redis-cli: always report server errors on read errors. · 08b03e23
      antirez authored
      Before this commit we may have not consumer buffers when a read error is
      encountered. Such buffers may contain errors that are important clues
      for the user: for instance a protocol error in the payload we send in
      pipe mode will cause the server to abort the connection. If the user
      does not get the protocol error, debugging what is happening can be a
      nightmare.
      
      This commit fixes issue #3756.
      08b03e23
  3. 04 Mar, 2019 1 commit
  4. 01 Mar, 2019 1 commit
    • Oran Agra's avatar
      redis-cli add support for --memkeys, fix --bigkeys for module types · 72ba6069
      Oran Agra authored
      * bigkeys used to fail on databases with module type keys
      * new code adds more types when it discovers them, but has no way to know element count in modules types yet
      * bigkeys was missing XLEN command for streams
      * adding --memkeys and --memkeys-samples to make use of the MEMORY USAGE command
      
      see #5167, #5175
      72ba6069
  5. 22 Feb, 2019 1 commit
  6. 25 Jan, 2019 2 commits
  7. 11 Dec, 2018 10 commits
  8. 22 Nov, 2018 2 commits
  9. 07 Nov, 2018 7 commits
  10. 03 Oct, 2018 2 commits
  11. 14 Sep, 2018 5 commits
  12. 13 Jul, 2018 2 commits
  13. 10 Jul, 2018 1 commit
  14. 09 Jul, 2018 4 commits