1. 17 Jul, 2019 1 commit
    • Oran Agra's avatar
      prevent diskless replica from terminating on short read · c56b4ddc
      Oran Agra authored
      now that replica can read rdb directly from the socket, it should avoid exiting
      on short read and instead try to re-sync.
      
      this commit tries to have minimal effects on non-diskless rdb reading.
      and includes a test that tries to trigger this scenario on various read cases.
      c56b4ddc
  2. 08 Jul, 2019 1 commit
    • Oran Agra's avatar
      diskless replication on slave side (don't store rdb to file), plus some other related fixes · 2de544cf
      Oran Agra authored
      The implementation of the diskless replication was currently diskless only on the master side.
      The slave side was still storing the received rdb file to the disk before loading it back in and parsing it.
      
      This commit adds two modes to load rdb directly from socket:
      1) when-empty
      2) using "swapdb"
      the third mode of using diskless slave by flushdb is risky and currently not included.
      
      other changes:
      --------------
      distinguish between aof configuration and state so that we can re-enable aof only when sync eventually
      succeeds (and not when exiting from readSyncBulkPayload after a failed attempt)
      also a CONFIG GET and INFO during rdb loading would have lied
      
      When loading rdb from the network, don't kill the server on short read (that can be a network error)
      
      Fix rdb check when performed on preamble AOF
      
      tests:
      run replication tests for diskless slave too
      make replication test a bit more aggressive
      Add test for diskless load swapdb
      2de544cf
  3. 12 Nov, 2018 1 commit
  4. 13 Jul, 2018 2 commits
  5. 05 Aug, 2015 1 commit
  6. 25 Aug, 2014 1 commit
  7. 10 Jul, 2014 1 commit
  8. 30 Jun, 2014 1 commit
  9. 17 Feb, 2014 2 commits
  10. 25 Jun, 2013 1 commit
  11. 11 Jun, 2012 1 commit
  12. 02 Jun, 2012 1 commit
    • antirez's avatar
      EVAL replication test: less false positives. · 80e808b6
      antirez authored
      wait_for_condition is now used instead of the usual "after 1000" (that
      is the way to sleep in Tcl). This should avoid to find the replica in
      a state where it is loading the RDB in memory, returning -LOADING error.
      
      This test used to fail when running the test over valgrind, due to the
      added latencies.
      80e808b6
  13. 25 May, 2012 1 commit
  14. 22 May, 2012 1 commit
    • antirez's avatar
      Redis test: include bug report on crash. · 2bcd18a2
      antirez authored
      Due to a change in the format of the bug report in case of crash of
      failed assertion the test suite was no longer able to properly log it.
      Instead just a protocol error was logged by the Redis TCL client that
      provided no clue about the actual problem.
      
      This commit resolves the issue by logging everything from the first line
      of the log including the string REDIS BUG REPORT, till the end of the
      file.
      2bcd18a2
  15. 16 Nov, 2011 1 commit
  16. 10 Dec, 2010 1 commit
  17. 04 Nov, 2010 1 commit
  18. 03 Aug, 2010 1 commit
  19. 28 Jul, 2010 1 commit
  20. 27 Jul, 2010 1 commit
  21. 06 Jul, 2010 1 commit
  22. 19 May, 2010 1 commit
  23. 15 May, 2010 1 commit
  24. 14 May, 2010 5 commits