1. 22 May, 2021 1 commit
  2. 20 May, 2021 3 commits
    • YaacovHazan's avatar
      stabilize tests that involved with load handlers (#8967) · 32a2584e
      YaacovHazan authored
      When test stop 'load handler' by killing the process that generating the load,
      some commands that already in the input buffer, still might be processed by the server.
      This may cause some instability in tests, that count on that no more commands
      processed after we stop the `load handler'
      
      In this commit, new proc 'wait_load_handlers_disconnected' added, to verify that no more
      cammands from any 'load handler' prossesed, by checking that the clients who
      genreate the load is disconnceted.
      
      Also, replacing check of dbsize with wait_for_ofs_sync before comparing debug digest, as
      it would fail in case the last key the workload wrote was an overridden key (not a new one).
      
      Affected tests
      Race fix:
      - failover command to specific replica works
      - Connect multiple replicas at the same time (issue #141), master diskless=$mdl, replica diskless=$sdl
      - AOF rewrite during write load: RDB preamble=$rdbpre
      
      Cleanup and speedup:
      - Test replication with blocking lists and sorted sets operations
      - Test replication with parallel clients writing in different DBs
      - Test replication partial resync: $descr (diskless: $mdl, $sdl, reconnect: $reconnect
      32a2584e
    • Wang Yuan's avatar
      Make aof buf alloc size more accurate in overhead (#8970) · 8627751e
      Wang Yuan authored
      
      
      In theory we should have used zmalloc_usable_size, but it may be slower,
      and now after #7875, there's no actual difference.
      So this change isn't making a dramatic change.
      Co-authored-by: default avatarOran Agra <oran@redislabs.com>
      8627751e
    • Wang Yuan's avatar
      Make full use of replication backlog memory (#8966) · 0b2d0be3
      Wang Yuan authored
      According jemalloc size classes, we may allocate much more memory
      than our setting of repl_backlog_size, but we don't make full use of it.
      0b2d0be3
  3. 19 May, 2021 5 commits
  4. 18 May, 2021 8 commits
  5. 17 May, 2021 3 commits
  6. 15 May, 2021 1 commit
  7. 14 May, 2021 1 commit
  8. 13 May, 2021 1 commit
  9. 11 May, 2021 1 commit
  10. 10 May, 2021 3 commits
  11. 09 May, 2021 3 commits
  12. 07 May, 2021 1 commit
  13. 06 May, 2021 3 commits
    • Huang Zhw's avatar
      redis-cli when SELECT fails, we should reset dbnum to 0 (#8898) · 6b475989
      Huang Zhw authored
      
      
      when SELECT fails, we should reset dbnum to 0, so the prompt will not
      display incorrectly.
      
      Additionally when SELECT and HELLO fail, we output message to inform
      it.
      
      Add config.input_dbnum which means the dbnum about to select.
      And config.dbnum means currently selected dbnum. When users succeed to
      select db, config.dbnum and config.input_dbnum will be the same. When
      users select db failed, config.input_dbnum will be kept. Next time if users
      auth success, config.input_dbnum will be automatically selected.
      When reconnect, we should select the origin dbnum.
      Co-authored-by: default avatarOran Agra <oran@redislabs.com>
      6b475989
    • Oran Agra's avatar
      fix redis-benchmark to ignore unsupported configs (#8916) · 4d1094e8
      Oran Agra authored
      Redis Enterprise supports the CONFIG GET command, but it replies with am
      empty array since the save and appendonly configs are not supported.
      before this fix redis-benchmark would segfault for trying to access the
      error string on an array type reply.
      see #8869
      4d1094e8
    • Wang Yuan's avatar
      Fix wrong COW memory in log (#8917) · 81e2d727
      Wang Yuan authored
      Always 0 MB of memory used by copy-on-write, introduced in #8645.
      81e2d727
  14. 05 May, 2021 1 commit
  15. 04 May, 2021 2 commits
  16. 03 May, 2021 3 commits
    • Oran Agra's avatar
      Resolve nonsense static analysis warnings · fd7d51c3
      Oran Agra authored
      fd7d51c3
    • Oran Agra's avatar
      Fix integer overflow in STRALGO LCS (CVE-2021-29477) · f0c5f920
      Oran Agra authored
      An integer overflow bug in Redis version 6.0 or newer could be exploited using
      the STRALGO LCS command to corrupt the heap and potentially result with remote
      code execution.
      f0c5f920
    • Oran Agra's avatar
      Fix integer overflow in intset (CVE-2021-29478) · 29900d4e
      Oran Agra authored
      An integer overflow bug in Redis 6.2 could be exploited to corrupt the heap and
      potentially result with remote code execution.
      
      The vulnerability involves changing the default set-max-intset-entries
      configuration value, creating a large set key that consists of integer values
      and using the COPY command to duplicate it.
      
      The integer overflow bug exists in all versions of Redis starting with 2.6,
      where it could result with a corrupted RDB or DUMP payload, but not exploited
      through COPY (which did not exist before 6.2).
      29900d4e