Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/redis/redis

Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs, Bitmaps.
https://github.com/redis/redis

Fix two minor bugs (MIGRATE key args and getKeysUsingCommandTable) (#9455)

1. MIGRATE has a potnetial key arg in argv[3]. It should be reflected in the command table.
2. ...

6aa2285e32a6bc16fe2938bfb40d833db7d3752d authored over 3 years ago
Fix the timing of read and write events under kqueue (#9416)

Normally we execute the read event first and then the write event.
When the barrier is set, we ...

306a5ccd2d053ff653988b61a779e3cbce408874 authored over 3 years ago
Use fchmod to update command history file. (#9447)

This is considered a safer approach as it prevents a race condition that
could lead to chmod ex...

c9931ddba53f43c291cb61b6976a91496976e2fd authored over 3 years ago
Slot-to-keys using dict entry metadata (#9356)

* Enhance dict to support arbitrary metadata carried in dictEntry

Co-authored-by: Viktor Söde...

f24c63a292e045d4b14b82b25981f00a95c1767a authored over 3 years ago
Tune timeout of active defrag test (#9426)

Failed on Raspberry Pi 3b where that single test took about 170 seconds

1e7ad894d2ecb9ad73d68ff1f1102195582b1469 authored over 3 years ago
Use sync_file_range to optimize fsync if possible (#9409)

We implement incremental data sync in rio.c by call fsync, on slow disk, that may cost a lot of ...

9a0c0617f10ebb6cd5bf82f5f4f7049e7ff0a3ce authored over 3 years ago
Better error handling for updateClientOutputBufferLimit. (#9308)

This one follow #9313 and goes deeper (validation of config file parsing)

Move the check/upda...

aefbc23451ae8d0c7503f2c3cb014bfd5b07b4ed authored over 3 years ago
redis-benchmark: improved help and warnings (#9419)

1. The output of --help:

* On the Usage line, just write [OPTIONS] [COMMAND ARGS...] instea...

97dcf95cc8afd4847048ceaa21a081833728677b authored over 3 years ago
redis-benchmark: make show throughput in only one thread. (#9146)

In multipe threads mode, every thread output throughput info. This
may cause some problems:
- ...

b375f5919ea7458ecf453cbe58f05a6085a954f0 authored over 3 years ago
Fix boundary problem of adjusting open files limit. (#5722)

When `decr_step` is greater than `oldlimit`, the final `bestlimit` may be invalid.

For ex...

945a83d40661981f5098de0d89d8cbcd88883f15 authored over 3 years ago
config memory limits: handle values larger than (signed) LLONG_MAX (#9313)

This aims to solve the issue in CONFIG SET maxmemory can only set maxmemory to up
to 9223372036...

641780a9c6d116c66d2bd66fe906afdc065c7132 authored over 3 years ago
redis-cli: Assert > 0 before dividing, to silence warning by tool (#9396)

Also make sure function can't return NULL by another assert.

74590f8345c148024a9d55471409e772d9c8fa90 authored over 3 years ago
BITSET and BITFIELD SET only propagate command when the value changed. (#9403)

In old way, we always increase server.dirty in BITSET and BITFIELD SET.
Even the command doesn'...

0835f596b8d6ab3d41a76cf468877273a6afa961 authored over 3 years ago
Let CONFIG GET * show both replicaof and its alias (#9395)

8f59c1ecae3d9f7e8e83c16aa3459feadb09f320 authored over 3 years ago
Sanitize dump payload: fix double free after insert dup nodekey to stream rax and returns 0 (#9399)

492d8d09613cff88f15dcef98732392b8d509eb1 authored over 3 years ago
Skip OOM-related tests on incompatible platforms. (#9386)

We only run OOM related tests on x86_64 and aarch64, as jemalloc on other
platforms (notably s3...

1d9c8d61d895b72ecc35b2973c399d0c70a72c18 authored over 3 years ago
More generic crash report for unsupported archs (#9385)

Following compilation warnings on s390x.

0e8d469f82a1971d99e40cb8352116687d98c843 authored over 3 years ago
Fix: don't assume char is unsigned. (#9375)

On systems that have unsigned char by default (s390x, arm), redis-server
could crash as soon as...

fe359cbfc25f4ada01e314ee4bb123b744422c62 authored over 3 years ago
Fix the wrong detection of sync_file_range system call (#9371)

If we want to check `defined(SYNC_FILE_RANGE_WAIT_BEFORE)`, we should include fcntl.h.
otherwis...

8edc3cd62c0d0508b68c887610ca53b632b8165b authored over 3 years ago
Added additional validation for cluster SETSLOT (#9360)

0cf2df84d4b27af4bffd2bf3543838f09e10f874 authored over 3 years ago
Update cluster debug log to include human readable packet type (#9361)

2402f5a7a1bd6f501cc630effc17801a0c44bf18 authored over 3 years ago
Improve setup operations order after fork. (#9365)

The order of setting things up follows some reasoning: Setup signal
handlers first because a si...

1221f7cd5eea8877a3df766f5c0a67255a894295 authored over 3 years ago
Add debian:oldoldstable build target for CI. (#9358)

Making sure Redis builds properly on older compiler is important given the wide range of systems...

08c46f2b867ffc1f7f75c46a60287520236541e7 authored over 3 years ago
Fix missing dismiss hash listpack memory due to ziplist->listpack migration (#9353)

5705cec68e2b93ace879cc1c8d05aca19bcfd188 authored over 3 years ago
Redis-cli monitor and pubsub can be aborted with Ctrl+C, keeping the cli alive (#9347)

Abort cli blocking modes with SIGINT without exiting the cli.

Co-authored-by: charsyam <chars...

82528d26785678b7ea7aeaff4c72aee58500e8d0 authored over 3 years ago
support regex in "--only" in runtest (#9352)

19bc83716c522d1dc5b34a2667a025d1c73a6e85 authored over 3 years ago
fix a compilation error around madvise when make with jemalloc on MacOS (#9350)

We only use MADV_DONTNEED on Linux, that's were it was tested.

8ab33c18e4c34dbf2e894adca5b9e74fd4348587 authored over 3 years ago
Format fixes and naming. SentReplyOnKeyMiss -> addReplyOrErrorObject (#9346)

Following the comments on #8659, this PR fix some formatting
and naming issues.

8f8117f78e004fa5f5808239dcaedf9acdb8c828 authored over 3 years ago
Replace all usage of ziplist with listpack for t_hash (#8887)

Part one of implementing #8702 (taking hashes first before other types)

## Description of the...

02fd76b97cbc5b8ad6f4c81c8538f02c76cbed46 authored over 3 years ago
Sanitize dump payload: handle remaining empty key when RDB loading and restore command (#9349)

This commit mainly fixes empty keys due to RDB loading and restore command,
which was omitted i...

cbda492909cd2fff25263913cd2e1f00bc48a541 authored over 3 years ago
Cleanup: createAOFClient uses createClient to avoid overlooked mismatches (#9338)

AOF fake client creation (createAOFClient) was doing similar work as createClient,
with some mi...

0b643e930d978862b3284ba742fba1a659832b8c authored over 3 years ago
Add SORT_RO command (#9299)

Add a readonly variant of the STORE command, so it can be used on
read-only workloads (replica,...

d3356bf614155f2a4352a0630065d715ce073b8a authored over 3 years ago
Allow master to replicate command longer than replica's query buffer limit (#9340)

Replication client no longer checks incoming command length against the client-query-buffer-limi...

e8eeba7bee6add5286afc4d59db074a924fb9209 authored over 3 years ago
Propagate OPENSSL_PREFIX to hiredis. (#9345)

3307958bd0fe25d79f48f81f9c4712f920d4956a authored over 3 years ago
sds.c: Fix potential overflow in sdsll2str. (#8910)

Fixes an undefined behavior, same way as our `ll2string` does.

e1dc979054846f96f77783673e421863700204be authored over 3 years ago
Fix the wrong method used in quicklistTest. (#8951)

The test try to test `insert before 1 element`, but it use quicklist
InsertAfter, a copy-paste ...

563ba7a3f0c6592edaeaf34e76e2e9b96de5c7ca authored over 3 years ago
[BUGFIX] Add some missed error statistics (#9328)

add error counting for some missed behaviors.

43eb0ce3bf76a5d287b93a767bead9ad6230a1ad authored over 3 years ago
Ignore resize threshold on idle qbuf resizing (#9322)

Also update qbuf tests to verify both idle and peak based resizing logic.
And delete unused fun...

0a9377535b6fd42ca6affa1c939fb859950d8043 authored over 3 years ago
corrupt-dump-fuzzer test, avoid creating junk keys (#9302)

The execution of the RPOPLPUSH command by the fuzzer created junk keys,
that were later being s...

3f3f678a4741e6af18230ee1862d9ced7af79faf authored over 3 years ago
Improvements to corrupt payload sanitization (#9321)

Recently we found two issues in the fuzzer tester: #9302 #9285
After fixing them, more problems...

0c90370e6d71cc68e4d9cc79a0d8b1e768712a5b authored over 3 years ago
Sanitize dump payload: fix empty keys when RDB loading and restore command (#9297)

When we load rdb or restore command, if we encounter a length of 0, it will result in the creati...

8ea777a6a02cae22aeff95f054d810f30b7b69ad authored over 3 years ago
Add debug config flag to print certain config values on engine crash (#9304)

Add debug config flag to print certain config values on engine crash

39a4a44d7ddf7ca84f006d2332b6d049f05e5de4 authored over 3 years ago
Make sure execute SLAVEOF command in the right order in psync2 test. (#9316)

The psync2 test has failed several times recently.
In #9159 we only solved half of the problem....

d0244bfc3df101bca8b2d94eec00feceaaff2ee0 authored over 3 years ago
Add sentinel debug option command (#9291)

This makes it possible to tune many parameters that were previously hard coded.
We don't intend...

63e2a6d212e9a30d9768b1d044348420e5b128c9 authored over 3 years ago
Add latency monitor sample when key is deleted via lazy expire (#9317)

Fix that there is no sample latency after the key expires via expireIfNeeded().
Some refactorin...

ca559819f7dcd97ba9ef667bf38360a9527d62f6 authored over 3 years ago
fix dict access broken by #9228 (#9319)

d32f8641ed5cda76234f7405d2b65e167223a9f1 authored over 3 years ago
dict struct memory optimizations (#9228)

Reduce dict struct memory overhead
on 64bit dict size goes down from jemalloc's 96 byte bin to ...

5e908a290ccbe9c4a7bea9356faf3b837df62793 authored over 3 years ago
redis-cli ASK redirect test: Add retry loop to fix timing issue (#9315)

1c59567a7fe207997eef6197eefa7d508d7fbf9f authored over 3 years ago
Use madvise(MADV_DONTNEED) to release memory to reduce COW (#8974)

## Backgroud
As we know, after `fork`, one process will copy pages when writing data to these
...

d4bca53cd9879e0296bfa0a7c17df79dd52496ae authored over 3 years ago
Fix tests failure on 32bit build (#9318)

Fix test introduced in #9202 that failed on 32bit CI.
The failure was due to a wrong double com...

56eb7f7de407c66b479005d3179fb36002099f4d authored over 3 years ago
Unified Lua and modules reply parsing and added RESP3 support to RM_Call (#9202)

## Current state
1. Lua has its own parser that handles parsing `reds.call` replies and transla...

2237131e15c84689f2cd990455111e222f5164f6 authored over 3 years ago
Fix head and tail check with negative offset in _quicklistInsert (#9311)

Some background:
This fixes a problem that used to be dead code till now,
but became alive (on...

b4eda14257841f7fdda3b70a8d352c0100a988b7 authored over 3 years ago
Skip new redis-cli ASK test in TLS mode (#9312)

52df350fe59d73e6a1a4a5fb3c2b91d5c62f5a76 authored over 3 years ago
Enabled -x option (Read last argument from STDIN) on redis-benchmark (#9130)

Add the -x option (Read last argument from STDIN) on redis-benchmark.

Other changes:
To be a...

4aa927d16d4458124157bcc1d6a31b54df4f3a3f authored over 3 years ago
Add SINTERCARD/ZINTERCARD Commands (#8946)

Add SINTERCARD and ZINTERCARD commands that are similar to
ZINTER and SINTER but only return th...

432c92d8df179a6a1aeae2df553c6b3fc810be76 authored over 3 years ago
Module api support for RESP3 (#8521)

Add new Module APS for RESP3 responses:
- RM_ReplyWithMap
- RM_ReplyWithSet
- RM_ReplyWithAtt...

bdbf5eedae55a1eea869cc5a31832d0c35113c66 authored over 3 years ago
Tests: fix commandfilter crash on alpine. (#9307)

Loading and unloading the shared object does not initialize global vars
on alpine.

4bd77483628617c611677431c111a7bfa32d6224 authored over 3 years ago
When redis-cli received ASK, it didn't handle it (#8930)

When redis-cli received ASK, it used string matching wrong and didn't
handle it.

When we ac...

cf61ad14cc45787e57d9af3f28f41462ac0f2aa2 authored over 3 years ago
Modify some error logs printing level. (#9306)

1. In sendBulkToSlave, we used LL_VERBOSE in the past, changed to
LL_WARNING. (all the other pl...

4000cb7d34a1c3cea222dec9e7ef679d8a7798d5 authored over 3 years ago
Add NX/XX/GT/LT options to EXPIRE command group (#2795)

Add NX, XX, GT, and LT flags to EXPIRE, PEXPIRE, EXPIREAT, PEXAPIREAT.
- NX - only modify the T...

f74af0e61d6104922325e2f38284ea66e4f3ccd4 authored over 3 years ago
Fix if consumer is created as a side effect without notify and dirty++ (#9263)

Fixes:
- When a consumer is created as a side effect, redis didn't issue a keyspace notificatio...

82c3158ad5fe5aab002a6d0565832d5bd15082f5 authored over 3 years ago
improve quicklist insert head/tail while head/tail node is full. (#9113)

In _quicklistInsert when `at_head` / `at_tail` is true, but `prev` / `next` is NULL,
the code w...

27a68a4d1b4526f37b8e9b2e89f3e32596734035 authored over 3 years ago
Fix copy-paste typo in t_list.c comment (#9305)

8ea18fa8d2ea1c27d9f674e30f797dc0c7347ace authored over 3 years ago
GEO* STORE with empty src key delete the dest key and return 0, not empty array (#9271)

With an empty src key, we need to deal with two situations:
1. non-STORE: We should return empt...

86555ae0f7cc45abac7f758d72bf456e90793b46 authored over 3 years ago
Tests: avoid short reads on redis-cli output. (#9301)

In some cases large replies on slow systems may only be partially read
by the test suite, resul...

68b8b45cd5ad63076afb29554f1647e949c5505c authored over 3 years ago
Remove const from CommandFilterArgGet result (#9247)

Co-authored-by: Yossi Gottlieb <[email protected]>

1483f5aa9ba630307e3c9761c0d21a18bc607c80 authored over 3 years ago
tests: fix a typo (#9294)

Signed-off-by: Long Dai <[email protected]>

89fdcbec8c446cfbf8befb54bf41e694c8290619 authored over 3 years ago
Free unused capacity in the cluster send buffer. (#9255)

* Free unused capacity in the cluster send buffer.
* Refactor cluster cron to include a dedicat...

8647addf934c453e933bb5f26ab4950fd5924a04 authored over 3 years ago
Minor refactoring for rioConnRead and adding errno (#9280)

minor refactoring for rioConnRead and adding errno

a40381640502439f751f42c4b23d4c6d396993e3 authored over 3 years ago
Clean unused var compiler warning in module test. (#9289)

8bf433dc86937a72cbcfa02743a093c2e3d91960 authored over 3 years ago
Remove duplicate zero-port sentinels (#9240)

The issue is that when a sentinel with the same address and IP is turned on with a different run...

db4153645458bbc23c0394a8974b734825a656e5 authored over 3 years ago
Fix LRU blue moon bug in RESTORE, RDB loading, module API (#9279)

The `lru_clock` and `lru` bits in `robj` save the least significant 24 bits of the unixtime (sec...

b458b2999b749950c5ea9468cfa5ab74782848c3 authored over 3 years ago
Fix missing check for sanitize_dump in corrupt-dump-fuzzer test (#9285)

this means the assertion that checks that when deep sanitization is enabled,
there are no crash...

3db0f1a284e4fba703419b892b2d5b8d385afc06 authored over 3 years ago
Add INFO stat total_eviction_exceeded_time and current_eviction_exceeded_time (#9031)

Add two INFO metrics:
```
total_eviction_exceeded_time:69734
current_eviction_exceeded_time:1...

17511df59b96bfeab8b46d474c19ec929e605bb9 authored over 3 years ago
tests: fix exec fails when grep exists with status other than 0 (#9066)

Co-authored-by: lizhaolong.lzl <[email protected]>

8d00493485ed4015c846b7cf694bfae03e133f0a authored over 3 years ago
fix zslGetRank bug in dead-code (#9246)

This fixes an issue with zslGetRank which will happen only if the
skiplist data stracture is ad...

9ca5e8c5470db52f786e1bdec61a067dd6fc289e authored over 3 years ago
On 32 bit platform, the bit position of GETBIT/SETBIT/BITFIELD/BITCOUNT,BITPOS may overflow (see CVE-2021-32761) (#9191)

GETBIT, SETBIT may access wrong address because of wrap.
BITCOUNT and BITPOS may return wrapped...

71d452876ebf8456afaadd6b3c27988abadd1148 authored over 3 years ago
Fix ACL category for SELECT, WAIT, ROLE, LASTSAVE, READONLY, READWRITE, ASKING (#9208)

- SELECT and WAIT don't read or write from the keyspace (unlike DEL, EXISTS, EXPIRE, DBSIZE, KEY...

32e61ee295beb8a45b66c4488937f17d0cd0fca7 authored over 3 years ago
Fix missing separator in module info line (usedby and using lists) (#9241)

Fix module info genModulesInfoStringRenderModulesList lack separator when there's more than one ...

1895e134a77efd789b1a6daee76a6ba5ec90e516 authored over 3 years ago
Remove testmodule in src/modules/Makefile. (#9250)

src/modules make failed. As in #3718 testmodule.c was removed. But the makefile was not updated

d54c9086c267d20bb6981f5a60f589e93b662d62 authored over 3 years ago
Fix rank overflow in zslInsert with more than 2B entries. (#9249)

If there are more than 2B entries in a zset.
The calculated span will overflow.

e7ccdeebc9b3e3b663ac39a54d05483a7fdc7eb6 authored over 3 years ago
Fix format strings serverLogObjectDebugInfo to use unsigned (#2927)

This doesn't have any real impact, just a cleanup.

ee4bdf10eee1ebf988b6d00ec8bdb212948e364d authored over 3 years ago
Add 'ist' to wordlist. (#9248)

fix spell checker CI after recently merged old PR

c9ca3b70652de196fec638f5357d92b5e6186d6d authored over 3 years ago
Update Lua debugging help message commands for consistency. (#2946)

8a73cd1f9a8fb788d49b5d2015bf1283098dc873 authored over 3 years ago
Fix typo in redis.conf comment (#9245)

71c0466c044186246a8af0832bc778c7b807429e authored over 3 years ago
SMOVE only notify dstset when the addition is successful. (#9244)

in case dest key already contains the member, the dest key isn't modified, so the command should...

11dc4e59b365d6cd8699604d7d1c1025b6bb6259 authored over 3 years ago
Set TCP keepalive on inbound clusterbus connections (#9230)

Set TCP keepalive on inbound clusterbus connections to prevent memory leak

f03af47a34ec672a7d9b18150a5be3a83681c19b authored over 3 years ago
fix timeout spell error (#9150)

334a9789f1108c0c78d5f57e0a4c13fa748a30b4 authored over 3 years ago
Test infra, handle RESP3 attributes and big-numbers and bools (#9235)

- promote the code in DEBUG PROTOCOL to addReplyBigNum
- DEBUG PROTOCOL ATTRIB skips the attrib...

6a5bac309e868deef749c36949723b415de2496f authored over 3 years ago
Fix compatibility with OpenSSL 1.1.0. (#9233)

277e4dc2032356c7712b539e89f7e9154e0a1a86 authored over 3 years ago
Return -1 when connTLSWrite fails to write due to socket being closed (#9222)

7ac42ab7b3cce3c656c30008dfd7162be5ac460a authored over 3 years ago
Add missing comma in memory/xgroup command help message. (#9210)

This would have resulted in missing newline in the help message

d0f36eeda013213919afe89bbc8a1d5bb3c94340 authored over 3 years ago
Fail EXEC command in case a watched key is expired (#9194)

There are two issues fixed in this commit:
1. we want to fail the EXEC command in case there i...

ac8b1df8850cc80fbf9ce8c2fbde0c1d3a1b4e91 authored over 3 years ago
Do not install a file event to send data to rewrite child when parent stop sending diff to child in aof rewrite. (#8767)

In aof rewrite, when parent stop sending data to child, if there is
new rewrite data, aofChildW...

cb961d8c8e10ff3b619f1579a03336a15e9e6f45 authored over 3 years ago
Add test for ziplist (nextdiff == -4 && reqlen < 4) (#9218)

The if judgement `nextdiff == -4 && reqlen < 4` in __ziplistInsert.
It's strange, but it's usef...

fe5d325107c11ff4a0b5f40deae47c3016c9b9d7 authored over 3 years ago
Pre-test bind-source-addr before running test. (#9214)

This attempts to catch any non-standard configuration where the test may
fail and produce a fal...

92e8004705bdac2ccb75c8be7c72f072d755a268 authored over 3 years ago
fix explanation of sha256 (#9220)

350c6306b4d0ae80167ebcfb3c2f346bd4e58ee5 authored over 3 years ago
Start redis-check-aof/redis-check-rdb only if executable name contains (#9215)

redis-check-aof/redis-check-rdb.

Related to #9176. Before this commit, redis-server starts as...

9a22457e8f07913200272238db069bfe58f91215 authored over 3 years ago
Direct redis-cli repl prints to stderr, because --rdb can print to stdout. fflush stdout after responses (#9136)

1. redis-cli can output --rdb data to stdout
but redis-cli also write some messages to stdou...

1eb4baa5b8e76adc337ae9fab49acc2585a0cdd0 authored over 3 years ago
Add range check for master port in replicaof. (#9201)

So that we can avoid commands that are obviously wrong.

Also unified with loadServerConfigFro...

3a26f61fb35ff9f96da8b7d0ba7d5f8c73e46da5 authored over 3 years ago