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

add test for modules load/unload and config rewrite

7cb42c9c36bbf410205742b2bc0cb95aeaefdc51 authored over 3 years ago
Fix integer overflow in STRALGO LCS (CVE-2021-32625) (#9011)

An integer overflow bug in Redis version 6.0 or newer can be exploited using the
STRALGO LCS co...

1ddecf1958924b178b76a31d989ef1e05af81964 authored over 3 years ago
Improve new time sensitive pexpireat propagation test (#9010)

The test that was merged yesterday fails with valgrind and freebsd CI
that are too slow, and 10...

ae67539c8bb2f898e33633c571f89b168f0ddb73 authored over 3 years ago
Extend freeSlotsToKeysMapAsync and freeTrackingRadixTreeAsync to check LAZYFREE_THRESHOLD. (#8969)

Without this fix, FLUSHALL ASYNC would have freed these in a background thread,
even if they di...

01495c674a9b468734f778e29b5176572e73c9dd authored over 3 years ago
Make full use of aofrwblock's buf (#8975)

Make aof rewrite buffer memory size more accurate, before, there may be 20%
deviation with its ...

58a03eca6705378ae8d29ffcc9d59794132acb14 authored over 3 years ago
Always replicate time-to-live(TTL) as absolute timestamps in milliseconds (#8474)

Till now, on replica full-sync we used to transfer absolute time for TTL,
however when a comman...

53d1acd598b689b2bbc470d907b9e40e548d63f6 authored over 3 years ago
unregister AE_READABLE from the read pipe in backgroundSaveDoneHandlerSocket (#8991)

In diskless replication, we create a read pipe for the RDB, between the child and the parent.
W...

501d7755831527b4237f9ed6050ec84203934e4d authored over 3 years ago
fix sentinel test failure (#8983)

fix for recent breakage from #8958, did a mistake when updating the pr.

be6ce8a92a9acbecfaaa6c57a45037fc1018fefe authored over 3 years ago
[SENTINEL] reset sentinel-user/pass to NULL when user config with empty string (#8958)

ae6f58690b91010d003cdf5552d74b8e5b428d53 authored over 3 years ago
remove unnecessary determine statement in sdsrange (#8978)

Already verified that start < len, so if end >= len, then start cannot be > len.

a319327ffb0f13c60c8146fc01d5354ab4fd35a3 authored over 3 years ago
stabilize tests that involved with load handlers (#8967)

When test stop 'load handler' by killing the process that generating the load,
some commands th...

32a2584e079a1b3c2d1e6649e38239381a73a459 authored over 3 years ago
Make aof buf alloc size more accurate in overhead (#8970)

In theory we should have used zmalloc_usable_size, but it may be slower,
and now after #7875, t...

8627751ec64e40181e3acfc53b3e2f73a3730cb7 authored over 3 years ago
Make full use of replication backlog memory (#8966)

According jemalloc size classes, we may allocate much more memory
than our setting of repl_back...

0b2d0be35ac0c0c02997bcbdc5c74ca1213837a1 authored over 3 years ago
Hide migrate command from slowlog if they include auth (#8859)

Redact commands that include sensitive data from slowlog and monitor

a59e75a475782d86d7ce2b5b9c6f5bb4a5ef0bd6 authored over 3 years ago
Fix race in new lazyfree test (#8965)

I recently saw this failure:
[err]: lazy free a stream with all types of metadata in tests/unit...

d67e66de72edc49a5493c963fd7cb97411165d8c authored over 3 years ago
redis-cli clusterManagerCommandCreate calculate interleaved_len wrong (#8964)

which make interleaved_len bigger and may access array out of range.

ed2602ab99a907da7023a0a8726a3fa986cbde12 authored over 3 years ago
Fix different reply on `SENTINEL SIMULATE-FAILURE help` command (#8962)

20268d04c0e09d4c086b936df7a8c6783906c9b5 authored over 3 years ago
try a more concise rdbTryIntegerEncoding using string2ll rather than strtoll. (#8926)

when string2ll was made to replace isStringRepresentableAsLongLong
(which was similar to what r...

1bab4cd198ed306afd7ed2e5617ba649dff37977 authored over 3 years ago
In activeDefragStringOb, we have took care defragged so not need to self-incr. (#8952)

incrementing the defragged hits counter twice in activeDefragSdsListAndDict

09a99fcd5f6b3dd56a909a3a975024f22a2ce0ea authored over 3 years ago
Add documentation for `firstkey`, `lastkey` and `keystep` parameters of `RedisModule_CreateCommand` (#8883)

These parameters of RedisModule_CreateCommand were previously
undocumented but they are needed ...

25d827d949b2388bbdf459ba1b3ff0cb12ac6af6 authored over 3 years ago
Avoid passing GeoHashRadius by value (#8941)

This parameter of type GeoHashRadius is 192 bytes - passing a `const` pointer instead.

e5a892829099634d6fcd7528bff7fd99155b999e authored over 3 years ago
longer timeout in replication test (#8963)

the test normally passes. but we saw one failure in a valgrind run in github actions

8458baf6a96fa6c6050bac24160f82d32a0b9ed4 authored over 3 years ago
Remove useless - from help.h on commands with no arguments (#8939)

As far as i can tell it shows up in redis-cli in both HELP, e.g.
`help client list`, and also i...

7b48de68ce13701f5a15191d1a6685336ffa3b0a authored over 3 years ago
fix race in config rewrite test (#8960)

cf41c0b5ff72cf09d2e99c1807c6347bdcfdcacd authored over 3 years ago
redis-cli: some commands should bypass history file. (#8895)

Currently in redis-cli only AUTH and ACL SETUSER bypass history
file. We add CONFIG SET mastera...

55fa91ae53e03a28089b4bdc082bc049f1947b19 authored over 3 years ago
redis-cli: Sleep for a while in each cliConnect when we got connect error in cluster mode. (#8884)

There's an infinite loop when redis-cli fails to connect in cluster mode.
This commit adds a 1 ...

8351a10b959364cff9fc026188ebc9c653ef230a authored over 3 years ago
AOF: remove memmove in aofChildWriteDiffData and record the latency (#5362)

Improve performance by avoiding inefficiencies in the parent process during AOFRW.
* AOF: recor...

0ecc814c8130a2258cdd108e1fc22edb399e8246 authored over 3 years ago
Reset lazyfreed_objects info field with RESETSTAT, test for stream lazyfree (#8934)

And also add tests to cover lazy free of streams with various types of
metadata (see #8932)

fbc0e2b834643bcdd1c766576ab61c19c608cd8b authored over 3 years ago
redis-cli: fix bugs in hints of commands with subcommands. (#8914)

There are two bugs in redis-cli hints:
* The hints of commands with subcommands lack first para...

8827aae83bf58b91f155005102675ff57061d9eb authored over 3 years ago
sinterstore: add missing keyspace del event when any source set not exists. (#8949)

this patch fixes sinterstore by add missing keyspace del event when any source set not exists.
...

46d9f31e94355ec15b95418377677bcf75839bc9 authored almost 4 years ago
Moved security bugs and vulnerability policy to SECURITY.md (#8938)

Moved security bugs and vulnerability policy to SECURITY.MD and extended security policy.

Co-...

df4d916007c285d01b11193272419ab228916d8a authored almost 4 years ago
EVALSHA_RO and EVAL_RO Commands (#8820)

* EVALSHA_RO and EVAL_RO Commands

Added new readonly versions of EVAL
and EVALSHA.

31edc22ecc6f21ab53dd6254b135fbfd5be23e2c authored almost 4 years ago
improve error handing in anetFDToString to avoid returning successfully with garbage. (#8678)

Check for errors in inet_ntop and snprintf rather than ignore them
and return success (with gar...

e01c92a5ef6127067922f74cd8dac2ba72a1ad52 authored almost 4 years ago
cluster process publish message only for known nodes. (#8856)

8526e04e7b5074944f95fafc9f19bd1b4d4a3a47 authored almost 4 years ago
Fix crash unlinking a stream with groups rax and no groups (#8932)

When estimating the effort for unlink, we try to compute the effort of
the first group and extr...

97108845e2ae7661e5091c817cb03459ec81ea8c authored almost 4 years ago
Fix typos, and consistent function argument names in quicklist (#8915)

Also fixes a chance for compilation error if REDIS_TEST_VERBOSE would be used.

fb66c1b58cbf84ad5372a2c793399d9301564da5 authored almost 4 years ago
Cleanup: sentinel config, latency extra time() (#8810)

4d4db9797fd684185dae476747069b54243f1e83 authored almost 4 years ago
redis-benchmark bad check for NOAUTH and NOPERM (#8931)

also, print errors to stderr rather than stdout

d32fd315886a45426e8f6991ab8879b9a7756443 authored almost 4 years ago
Use function instead of code in dict.c and delete dead code in dict.h (#8878)

Use function instead of code in dict.c and delete dead code in dict.h

56976ffb4940b95cc3746b115d7f957c9e4b20f8 authored almost 4 years ago
Typo: Change port_get to port_getn in aeApiPoll panic message. (#8920)

57b94eacaa64591295c9f9f9bb50eed9ed8b9a54 authored almost 4 years ago
redis-cli when SELECT fails, we should reset dbnum to 0 (#8898)

when SELECT fails, we should reset dbnum to 0, so the prompt will not
display incorrectly.

A...

6b475989984bb28499327e33cc79315d6264bc06 authored almost 4 years ago
fix redis-benchmark to ignore unsupported configs (#8916)

Redis Enterprise supports the CONFIG GET command, but it replies with am
empty array since the ...

4d1094e8be3150b92b3e96d3a743c66b1a95988a authored almost 4 years ago
Fix wrong COW memory in log (#8917)

Always 0 MB of memory used by copy-on-write, introduced in #8645.

81e2d7272b784273099fecd85b15473277296771 authored almost 4 years ago
remove duplicate fd lookup in aeProcessEvents (#3886)

Minor code cleanup.

bcc519fa7cef85adf182af0cfa4aa67a71ad90b9 authored almost 4 years ago
redis-cli: Fix integer overflow in intrinsic-latency (#8907)

a62801eb534d78163ea53bd0cd39063621a53ead authored almost 4 years ago
Enforce client output buffer soft limit when no traffic. (#8833)

When client breached the output buffer soft limit but then went idle,
we didn't disconnect on s...

152fce5e2cbf947a389da414a431f7331981a374 authored almost 4 years ago
Resolve nonsense static analysis warnings

fd7d51c353607f350c865155444bce9236f3d682 authored almost 4 years ago
Fix integer overflow in STRALGO LCS (CVE-2021-29477)

An integer overflow bug in Redis version 6.0 or newer could be exploited using
the STRALGO LCS c...

f0c5f920d0f88bd8aa376a2c05af4902789d1ef9 authored almost 4 years ago
Fix integer overflow in intset (CVE-2021-29478)

An integer overflow bug in Redis 6.2 could be exploited to corrupt the heap and
potentially resu...

29900d4e6bccdf3691bedf0ea9a5d84863fa3592 authored almost 4 years ago
Add missing NOLOOP tracking flag in help (#8892)

611e11734c4e5f4dc1671bf53568732810682e0b authored almost 4 years ago
Fix typos in comments and improve readability (#8899)

f3ee2d98af6262ae54f618424ff847a1128277ec authored almost 4 years ago
Free value if dup succeed but listAddNodeTail failed. (#8901)

This fix is in dead code.
see redisOutOfMemoryHandler an allocation can't fail.
but maybe some...

ccb76e5688a7a5655c8ed2c8313f6ad7d54e4d2d authored almost 4 years ago
Fix memory leak in moduleDefragGlobals (#8853)

5100ef9f8246dec6590f35f6b9f0b88c2dea0cfb authored almost 4 years ago
Improve redis-cli help. When help command, we only match command (#8879)

prefix args not all args. So when we help commands with subcommands,
all subcommands will be ou...

0b1b9edb2843730b03f78b6073cdd30873dbba95 authored almost 4 years ago
Delete some unimplemented prototype. (#8882)

Remove forward declarations from header files to functions that do not exist.

9c927e9de96b6457cc96e04c26ba6649b5325c8e authored almost 4 years ago
redis-benchmark: Add zfree(data) and fix lrange size / text mismatch (#8872)

missing zfree(data) in redis-benchmark.

And also correct the wrong size in lrange.
the text ...

1eff8564c78011f7257e485796990a0d4d607a5b authored almost 4 years ago
redis-cli: Do not use hostsocket when we got redirected in cluster mode (#8870)

When redis-cli was used with both -c (cluster) and -s (unix socket),
it would have kept trying ...

416f2773395ffcd72d8d8408e1558f49d59a0077 authored almost 4 years ago
redis-benchmark: Error/Warning handling updates. (#8869)

- Immediately exit on errors that are not related to topology updates.
- Deprecates the `-e` op...

ef6f902372d4646b1894ec5dbd5f857dea5688d6 authored almost 4 years ago
Fix potential CONFIG SET bind test failure. (#8875)

Use an invalid IP address to trigger CONFIG SET bind failure, instead of DNS which is not guaran...

2b22fffc787e91df789dabf23ddcf19ecf34cf6f authored almost 4 years ago
Bump freebsd-vm version to fix CI failures (#8876)

Specifically we had issues with NTP sync failure which was resolved here: https://github.com/vma...

2e88b0639689a3019e27f55dfa40578847443eeb authored almost 4 years ago
Fixes some typos (#8874)

3d56be3788a68d81ddb259197b0b2f4149bd94cb authored almost 4 years ago
GEOSEARCHSTORE: removed unsupported args from comment (#8873)

93e775069959c741b3719a9e85cbe0a82478959c authored almost 4 years ago
Prevent replicas from sending commands that interact with keyspace (#8868)

This solves an issue reported in #8712 in which a replica would bypass
the client write pause c...

46f4ebbe842620f0976a36741a72482620aa4b48 authored almost 4 years ago
Remove dead code from lpStringToInt64() (#8863)

bcf1b384e3a2cc83124684a9d952682b713fe2f0 authored almost 4 years ago
Fix error reply of GEOSEARCHSTORE unsupported args (#8865)

When [WITHCOORD] [WITHDIST] [WITHHASH] are used, the error mentioned GEORADIUS command

4bfcf4654a3ea3253dcce8ef6a8d290f1d6dce72 authored almost 4 years ago
Remove redundant -latomic on arm64. (#8867)

ebfbb091096b6f36cf82e9f6e6583b10fd5b5acb authored almost 4 years ago
Simplify rax free for RM_FreeServerInfo (#8866)

074e28a46eb2646ab33002731fac6b4fc223b0bb authored almost 4 years ago
Fail fast when systemic error occurs in poll (#8749)

Most of the ae.c backends didn't explicitly handle errors, and instead
ignored all errors and d...

a8b6596d233556980adc09589c9022e8a7901755 authored almost 4 years ago
Add codeql static analysis in PR CI (#8854)

d1ca1e665f5df75fee6d7e9034b06a9686b7b239 authored almost 4 years ago
Distinguish between pong and meet messages in clusterProcessPacket log (#8848)

Fix clusterProcessPacket log don't distinguish between pong and meet.
Additionally log node nam...

20735a5354a76dfef97fb4ddeb1999b2ea74d8f3 authored almost 4 years ago
Fix comments and typos in sentinel.c. (#8801)

72aa37623762a66f7b67251baa56bb7fe6156bc5 authored almost 4 years ago
When the password is wrong, redis-benchmark should exit (#8855)

8423b77f14c0d3a58e580c65a70b4f980f5cdcf6 authored almost 4 years ago
fuzz tester, try to print hung command (#8837)

611959eee55a1fe0fa532a5f878ab5ba2b6b79c4 authored almost 4 years ago
Improve ziplistRandomPairs code logic (#8851)

After sorting, each item in picks is sorted according
to its index.

In the original code log...

828ae842b95654f66b03e786588c97d7a0c386a2 authored almost 4 years ago
Fix some wrongly used constants in module.c (#8844)

This change does not fix any bugs.
1. ```moduleUnload``` should return ```C_OK``` or ```C_ERR``...

f29a0b9351e61ae16a7cfeaa2c05c409221988ca authored almost 4 years ago
Typo fix in gen-test-certs.sh (#8841)

cc0091f0f9fe321948c544911b3ea71837cf86e3 authored almost 4 years ago
Modules: Fix RM_GetClusterNodeInfo() to correctly populate the master_id (#8846)

af035c1e1d3bcaf662051cff4dc49f6051321c9c authored almost 4 years ago
Fixes a comment typo in sentinel.c (#8845)

e43dbd03f307814ab0f472ccaab44342bbd15039 authored almost 4 years ago
Changes http to https in README.md (#8843)

c4a5816ccd05cd0ddbeb87bc061bdb6363027197 authored almost 4 years ago
Use monotonic clock to check for Lua script timeout. (#8812)

This prevents a case where NTP moves the system clock
forward resulting in a false detection of...

f61c37cec900ba391541f20f7655aad44a26bafc authored almost 4 years ago
Expire key firstly and then notify keyspace event (#8830)

Modules event subscribers may get wrong things in notifyKeyspaceEvent callback,
such as wrong n...

63acfe4b00b9d3e34a53559f965c0bc44c03db61 authored almost 4 years ago
Update redis conf (#8707)

* Fix typo for compatible
* Trim trailing whitespace

b9d7d55b2c1a17fd596d77081b8a553defb4a590 authored almost 4 years ago
Fix typo in server.c (#8809)

ac36161694697f5f1af78d049ba71285c9cf0dcd authored almost 4 years ago
Fix typo in rdb.c (#8827)

473588c399de5b7a020d422db636b1ff95ad496e authored almost 4 years ago
Fix typo and (hopefully) slightly improve comment readability (#8834)

9fab26904fc4591de7df5dbfcd9efe846a050d73 authored almost 4 years ago
Fix typo in redis-cli.c (#8772)

8636c3e00373a1502e7e2535c6fe660a666f16b4 authored almost 4 years ago
fix anetGenericAccept error return check (#8835)

the anetGenericAccept return ANET_ERR but outside use constant -1

Co-authored-by: libo <buaa_...

bb16cf0f4faad53387b6f51f294109f791b1d434 authored almost 4 years ago
Shrink code lines and reduce code cyclomatic complexity (#8748)

code cleanup in anetGenericAccept

5f6e166bce95c969d58ea0fcc357a779cc32bdc4 authored almost 4 years ago
Print the number of abnormal line in AOF (#8823)

When redis-check-aof finds an error, it prints the line number for faster troubleshooting.

761d7d27711edfbf737def41ff28f5b325fb16c8 authored almost 4 years ago
Fix migrateCommand may migrate wrong value. (#8815)

This scene is hard to happen. When first attempt some keys expired,
only kv position is updated...

080d4579db40d965f8392af5b1da7a99d1a817d5 authored almost 4 years ago
Fix memory leak when doing lazyfreeing client tracking table (#8822)

Interior rax pointers were not being freed

c73b4ddfd96d00ed0d0fde17953ce63d78bc3777 authored almost 4 years ago
clean dead assignment, start is never used in sdstrim function (#8796)

c2aff4c74493b921b1ad6868902ba68d647cc1c8 authored almost 4 years ago
Fix space included in links in modules API doc (#8818)

61d3fdb474bdb292f8ba40d8aafa175431f26a00 authored almost 4 years ago
Modules: adding a module type for key space notification (#8759)

Adding a new type mask ​for key space notification, REDISMODULE_NOTIFY_MODULE, to enable unique ...

53a4d6c3b152a9aa6386c2362400b258cec09ed3 authored almost 4 years ago
Modules: Replicate lazy-expire even if replication is not allowed (#8816)

Before this commit using RM_Call without "!" could cause the master
to lazy-expire a key (delet...

f40ca9cb58049683b563245006892001a5ebfacd authored almost 4 years ago
ACL channels permission handling for save/load scenario. (#8794)

In the initial release of Redis 6.2 setting a user to only allow pubsub access to
a specific ch...

7a3d1487e443c3cb5fde3605aebea20698a940b4 authored almost 4 years ago
Fix ouput buffer limit test (#8803)

The tail size of c->reply is 16kb, but in the test only publish a
few chars each time, due to a...

3a955d9ad443adcb1d0495f4b702612f6b250f6e authored almost 4 years ago
fix invalid master_link_down_since_seconds in info repication (#8785)

When replica never successfully connect to master, server.repl_down_since
will be initialized t...

0413fbc7d015d2ad9a4f57cc50a68e581f0e7744 authored almost 4 years ago
Revert cluster slot migration tests. (#8806)

Disables #8649 and subsequent attempts to stabilize the test.

c0f5c678c2e848899427160cf468e3727f0b752d authored almost 4 years ago
Fix timing of new replication test (#8807)

In github actions CI with valgrind, i saw that even the fast replica
(one that wasn't paused), ...

a9897b0084919d85c64e6a41a0fea0f882550760 authored almost 4 years ago