read-redis/tests/unit
zhaozhao.zz 9b25484a13 Fix wrong offset when replica pause (#9448)
When a replica paused, it would not apply any commands event the command comes from master, if we feed the non-applied command to replication stream, the replication offset would be wrong, and data would be lost after failover(since replica's `master_repl_offset` grows but command is not applied).

To fix it, here are the changes:
* Don't update replica's replication offset or propagate commands to sub-replicas when it's paused in `commandProcessed`.
* Show `slave_read_repl_offset` in info reply.
* Add an assert to make sure master client should never be blocked unless pause or module (some modules may use block way to do background (parallel) processing and forward original block module command to the replica, it's not a good way but it can work, so the assert excludes module now, but someday in future all modules should rewrite block command to propagate like what `BLPOP` does).

(cherry picked from commit 1b83353dc382959e218191f64d94edb9703552e3)
2021-10-04 13:59:40 +03:00
..
moduleapi Fix failing basics moduleapi test on 32bit CI (#9140) 2021-07-21 21:06:49 +03:00
type SMOVE only notify dstset when the addition is successful. (#9244) 2021-07-21 21:06:49 +03:00
acl.tcl ACL channels permission handling for save/load scenario. (#8794) 2021-04-19 13:27:44 +03:00
aofrw.tcl stabilize tests that involved with load handlers (#8967) 2021-07-21 21:06:49 +03:00
auth.tcl Prevent unauthenticated client from easily consuming lots of memory (CVE-2021-32675) 2021-10-04 13:59:40 +03:00
bitfield.tcl Fix BITFIELD_RO test. 2020-03-23 12:02:12 +01:00
bitops.tcl On 32 bit platform, the bit position of GETBIT/SETBIT/BITFIELD/BITCOUNT,BITPOS may overflow (see CVE-2021-32761) (#9191) 2021-07-21 21:06:49 +03:00
dump.tcl Fix recent test failures (#8386) 2021-01-23 21:53:58 +02:00
expire.tcl Add more attempts to a timing sensitive test (#8770) 2021-04-13 17:35:10 +03:00
geo.tcl GEO* STORE with empty src key delete the dest key and return 0, not empty array (#9271) 2021-10-04 13:59:40 +03:00
hyperloglog.tcl Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-09-10 13:43:38 +03:00
info.tcl [BUGFIX] Add some missed error statistics (#9328) 2021-10-04 13:59:40 +03:00
introspection-2.tcl EXISTS should not alter LRU, OBJECT should not reveal expired keys on replica (#8016) 2020-11-18 11:16:21 +02:00
introspection.tcl Hide migrate command from slowlog if they include auth (#8859) 2021-06-01 17:03:36 +03:00
keyspace.tcl Improve dbid range check for SELECT, MOVE, COPY (#8085) 2020-12-01 21:41:26 +02:00
latency-monitor.tcl Add a --no-latency tests flag. (#7939) 2020-10-22 11:10:53 +03:00
lazyfree.tcl Test: basic lazyfree unit test. 2015-10-09 09:47:17 +02:00
limits.tcl Add io-thread daily CI tests. (#8232) 2021-01-17 15:48:48 +02:00
maxmemory.tcl Fix flaky unit/maxmemory test on MacOS/BSD. (#8619) 2021-03-08 20:53:53 +02:00
memefficiency.tcl Skip defrag tests on systems with bigger page sizes (#8294) 2021-01-08 10:03:21 +02:00
multi.tcl Fail EXEC command in case a watched key is expired (#9194) 2021-07-21 21:06:49 +03:00
networking.tcl Fix potential CONFIG SET bind test failure. (#8875) 2021-05-03 22:57:00 +03:00
obuf-limits.tcl Enforce client output buffer soft limit when no traffic. (#8833) 2021-06-01 17:03:36 +03:00
oom-score-adj.tcl Fix timing error oom-score-adj test (#8513) 2021-02-19 13:01:25 +02:00
other.tcl Hide migrate command from slowlog if they include auth (#8859) 2021-06-01 17:03:36 +03:00
pause.tcl Fix wrong offset when replica pause (#9448) 2021-10-04 13:59:40 +03:00
pendingquerybuf.tcl stabilized and improve pendingquerybuf test suit (#8780) 2021-04-14 11:49:00 +03:00
printver.tcl Print version info before running the test 2011-05-20 11:44:54 +02:00
protocol.tcl Test infra, handle RESP3 attributes and big-numbers and bools (#9235) 2021-07-21 21:06:49 +03:00
pubsub.tcl Add test verifying PUBSUB NUMPAT behavior (#9209) 2021-10-04 13:59:40 +03:00
quit.tcl Add tests for OK on QUIT 2010-10-15 12:54:53 +02:00
scan.tcl Add io-thread daily CI tests. (#8232) 2021-01-17 15:48:48 +02:00
scripting.tcl Fix protocol parsing on 'ldbReplParseCommand' (CVE-2021-32672) 2021-10-04 13:59:40 +03:00
shutdown.tcl Fix new obuf-limits tests to work with TLS (#7848) 2020-09-27 17:13:33 +03:00
slowlog.tcl Hide migrate command from slowlog if they include auth (#8859) 2021-06-01 17:03:36 +03:00
sort.tcl Config: Add quicklist, remove old list options 2015-01-02 11:16:10 -05:00
tls.tcl Add support for reading encrypted keyfiles. (#8644) 2021-03-22 13:27:46 +02:00
tracking.tcl Fix race in client side tracking (#9116) 2021-07-21 21:06:49 +03:00
violations.tcl Fix ziplist and listpack overflows and truncations (CVE-2021-32627, CVE-2021-32628) 2021-10-04 13:59:40 +03:00
wait.tcl Add io-thread daily CI tests. (#8232) 2021-01-17 15:48:48 +02:00