redis/tests/unit
Vitah Lin 47505c3533
CI / test-ubuntu-latest (push) Waiting to run Details
CI / test-sanitizer-address (push) Waiting to run Details
CI / build-debian-old (push) Waiting to run Details
CI / build-macos-latest (push) Waiting to run Details
CI / build-32bit (push) Waiting to run Details
CI / build-libc-malloc (push) Waiting to run Details
CI / build-centos-jemalloc (push) Waiting to run Details
CI / build-old-chain-jemalloc (push) Waiting to run Details
Codecov / code-coverage (push) Waiting to run Details
External Server Tests / test-external-standalone (push) Waiting to run Details
External Server Tests / test-external-cluster (push) Waiting to run Details
External Server Tests / test-external-nodebug (push) Waiting to run Details
Spellcheck / Spellcheck (push) Waiting to run Details
Fix 'Client output buffer hard limit is enforced' test causing infinite loop (#13934)
This PR fixes an issue in the CI test for client-output-buffer-limit,
which was causing an infinite loop when running on macOS 15.4.

### Problem

This test start two clients, R and R1:
```c
R1 subscribe foo
R publish foo bar
```

When R executes `PUBLISH foo bar`, the server first stores the message
`bar` in R1‘s buf. Only when the space in buf is insufficient does it
call `_addReplyProtoToList`.
Inside this function, `closeClientOnOutputBufferLimitReached` is invoked
to check whether the client’s R1 output buffer has reached its
configured limit.
On macOS 15.4, because the server writes to the client at a high speed,
R1’s buf never gets full. As a result,
`closeClientOnOutputBufferLimitReached` in the test is never triggered,
causing the test to never exit and fall into an infinite loop.

---------

Co-authored-by: debing.sun <debing.sun@redis.com>
2025-05-06 10:44:16 +08:00
..
cluster Adding AGPLv3 as a license option to Redis! (#13997) 2025-05-01 14:04:22 +01:00
moduleapi avoid possible use-after-free with module KSN changes (#13875) 2025-03-24 12:24:52 +02:00
type Fix incorrect lag due to trimming stream via XTRIM or XADD command (#13958) 2025-04-22 10:11:10 +08:00
acl-v2.tcl Fix Read/Write key pattern selector (CVE-2024-51741) 2025-01-13 21:20:19 +02:00
acl.tcl Free current client asynchronously after user permissions changes (#13274) 2024-05-30 22:09:30 +08:00
aofrw.tcl
auth.tcl Adding AGPLv3 as a license option to Redis! (#13997) 2025-05-01 14:04:22 +01:00
bitfield.tcl
bitops.tcl
client-eviction.tcl Async IO Threads (#13695) 2024-12-23 14:16:40 +08:00
dump.tcl Fix 'RESTORE can set LFU' test (#13896) 2025-03-28 13:33:58 +08:00
expire.tcl Fix dictionary use-after-free in active expire and make kvstore iter to respect EMPTY flag (#13135) 2024-03-18 17:41:54 +02:00
functions.tcl Trigger Lua GC after script loading (#13407) 2024-07-16 09:28:47 +08:00
geo.tcl
hyperloglog.tcl Fix bug in PFMERGE command (#13672) 2024-12-18 14:41:04 +08:00
info-command.tcl
info-keysizes.tcl Fix multiple issues with "INFO KEYSIZES" (#13825) 2025-02-25 00:38:44 +02:00
info.tcl Adding AGPLv3 as a license option to Redis! (#13997) 2025-05-01 14:04:22 +01:00
introspection-2.tcl RED-129256, Fix TOUCH command from script in no-touch mode (#13512) 2024-09-12 11:33:26 +03:00
introspection.tcl Remove io-threads-do-reads from normal config list (#13987) 2025-04-28 12:55:47 +03:00
keyspace.tcl Prevent pattern matching abuse (CVE-2024-31228) 2024-10-08 20:55:44 +03:00
latency-monitor.tcl
lazyfree.tcl Fix timing issue in lazyfree test (#13926) 2025-04-13 20:32:16 +08:00
limits.tcl
maxmemory.tcl Async IO Threads (#13695) 2024-12-23 14:16:40 +08:00
memefficiency.tcl Adding AGPLv3 as a license option to Redis! (#13997) 2025-05-01 14:04:22 +01:00
multi.tcl Fix propagation of entries_read by calling streamPropagateGroupID unconditionally (#12898) 2024-02-29 09:48:20 +02:00
networking.tcl
obuf-limits.tcl Fix 'Client output buffer hard limit is enforced' test causing infinite loop (#13934) 2025-05-06 10:44:16 +08:00
oom-score-adj.tcl Check user's oom_score_adj write permission for oom-score-adj test (#13111) 2024-03-05 14:42:28 +02:00
other.tcl Cluster compatibility check (#13846) 2025-03-20 10:35:53 +08:00
pause.tcl Fix potential infinite loop of RANDOMKEY during client pause (#13863) 2025-03-20 21:32:12 +08:00
printver.tcl
protocol.tcl Fix crash due to cron argv release (#13725) 2025-01-08 09:57:23 +08:00
pubsub.tcl Fix order of KSN for hgetex command (#13931) 2025-04-14 13:31:31 +03:00
pubsubshard.tcl Async IO Threads (#13695) 2024-12-23 14:16:40 +08:00
querybuf.tcl Adding AGPLv3 as a license option to Redis! (#13997) 2025-05-01 14:04:22 +01:00
quit.tcl
replybufsize.tcl
scan.tcl Revert "improve performance for scan command when matching data type (#12395)" 2025-02-05 20:49:42 +02:00
scripting.tcl Fix memory leak of jemalloc tcache on function flush command (#13661) 2024-11-21 14:12:58 +03:00
shutdown.tcl
slowlog.tcl Exit early if slowlog/acllog max len set to zero (#12965) 2024-01-22 16:01:04 -08:00
sort.tcl Fix get # option in sort command (#13608) 2024-10-22 09:55:00 +08:00
tls.tcl
tracking.tcl
violations.tcl
wait.tcl