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 wrong commands json docs for CLIENT KILL (#10970)

The docs state that there is a new and an old argument format.
The current state of the argumen...

4ce3fd51b9fc6f627f4e81f1a98c8e350cc2e660 authored over 2 years ago
Tests (cluster / sentinel): add --stop and--loop options (#11070)

--stop: Blocks once the first test fails.
--loop: Execute the specified set of tests forever.
...

e13b6818742f67c515ceb98fe2fb6e587b1e2c70 authored over 2 years ago
Optimization: moduleLoadString should try to create embedded string if not plain (#11050)

Before this change, if the module has an embedded string, then uses RedisModule_SaveString
and ...

2029976dc3c331956412bada063ee4df1c288132 authored over 2 years ago
tracking pending invalidation message of flushdb sent by (#11068)

trackingHandlePendingKeyInvalidations should use proto.

61451b02cb3dd5f274a2f5fe72bf0b80b02a744e authored over 2 years ago
Avoid false positive out-of-bounds in writeForgottenNodePingExt (#11053)

In clusterMsgPingExtForgottenNode, sizeof(name) is CLUSTER_NAMELEN,
and sizeof(clusterMsgPingEx...

90f35cea81b48834cf3906435a2ef352f3e3e900 authored over 2 years ago
Fix bgsaveerr issue in psync wrong offset test (#11043)

The kill above is sometimes successful and sometimes already too late.
The PING in pysnc wrong ...

e7144693e2446f21ee68c95676ecf65d1351d13e authored over 2 years ago
Adds RM_Microseconds and RM_CachedMicroseconds (#11016)

RM_Microseconds
Return the wall-clock Unix time, in microseconds

RM_CachedMicroseconds
Retu...

45c99d7092926c0774608520b9a399dbd40f9714 authored over 2 years ago
Change the return value of rdbLoad function to enums (#11039)

The reason we do this is because in #11036, we added error
log message when failing to open RDB...

00097bf4aa9e28477ee5d9361569f3212fb7493a authored over 2 years ago
When client tracking is on, invalidation message of flushdb in a (#11038)

When FLUSHDB / FLUSHALL / SWAPDB is inside MULTI / EXEC, the
client side tracking invalidation ...

6f0a27e38e6dc1258f5f5790ec672f7fb555fcfb authored over 2 years ago
Fix #11030, use lua_rawget to avoid triggering metatables and crash. (#11032)

Fix #11030, use lua_rawget to avoid triggering metatables.

#11030 shows how return `_G` from ...

020e046b4210f64a614d7ec51b4ee09f746e5350 authored over 2 years ago
Gossip forgotten nodes on `CLUSTER FORGET` (#10869)

Gossip the cluster node blacklist in ping and pong messages.
This means that CLUSTER FORGET doe...

5032de50f207b7d4969ee20f79a75d2f1c50dda3 authored over 2 years ago
Add error log message when failing to open RDB file for reading (#11036)

When failing to open the rdb file, there was no specific error printed (unlike a
corrupt file),...

33bd8fb9810249a35d3bd9f5ddcb8a4f85a1c725 authored over 2 years ago
fsync the old aof file when open a new INCR AOF (#11004)

In rewriteAppendOnlyFileBackground, after flushAppendOnlyFile(1),
and before openNewIncrAofForA...

03fff10ab4ea23ad17cc10bee16923a5266f8a1b authored over 2 years ago
Register abs-expire apis (#11025)

RM_SetAbsExpire and RM_GetAbsExpire were not actually operational since
they were introduced, d...

39d216a326539e8f3d51fca961d193e4d7be43e0 authored over 2 years ago
fixed complexity of bzmpop and zmpop commands (#11026)

Swap M and N in the complexity formula of [B]ZMPOP

Co-authored-by: Pavel Krush <neon@pushwoos...

5879e490b8c4d2c1eb612c155ba798d5ec16455a authored over 2 years ago
Don't update node ip when peer fd is closed (#10696)

d00b8af89265c501fb4a0cdd546702b90432a896 authored over 2 years ago
Adds LASTID to XCLAIM docs (#11017)

It seems it was overlooked when we first created the json files

6d6e932fa6cce5a08aaf68a3d41946a1909a32a0 authored over 2 years ago
Make cluster config file saving atomic and fsync acl (#10924)

As an outstanding part mentioned in #10737, we could just make the cluster config file and
ACL ...

cc2848132f8b380dc60564c417868645bd879c88 authored over 2 years ago
Fix EVALSHA_RO and EVAL_RO command json file (#11015)

these are missing from the RO_ commands, present in the other ones.

Co-authored-by: Ubuntu <l...

56828bab592ff9c8496bd4ce426d7705f5d3c3fb authored over 2 years ago
CI: Update vmaction. (#11013)

b550a55cbf5e02ab02f8ab020985cb2bfb4fa707 authored over 2 years ago
Set RM_StringCompare input args as const (#11010)

Following #10996, it forgot to modify RM_StringCompare in module.c

Modified RM_StringCompare,...

95b88f672a54fc66d719c1385008ad8f8cc7d642 authored over 2 years ago
Fix timing issue in cluster test (#11008)

A timing issue like this was reported in freebsd daily CI:
```
*** [err]: Sanity test push cmd...

5ce64ab01011781c426074f3fa7398260cce94cc authored over 2 years ago
Fix heap overflow corruption in XAUTOCLAIM (CVE-2022-31144) (#11002)

The temporary array for deleted entries reply of XAUTOCLAIM was
insufficient, but also in fact ...

2825b6057bee911e69b6fd30eb338d02e9d7ff90 authored over 2 years ago
Avoid using unsafe C functions (#10932)

replace use of:
sprintf --> snprintf
strcpy/strncpy --> redis_strlcpy
strcat/strncat --> re...

eacca729a55501508c434bab30c2432e58728aee authored over 2 years ago
remove boolean usage and use 0/1 instead (#10997)

If we do not use jemalloc (mostly with valgrind) and use an old compiler that does not support C...

82b82035553cdbaf81983f91e0402edc8de764ab authored over 2 years ago
Set RedisModule_StringCompare input args as const (#10996)

587fc9ce763c2eac90167f0b7daf295056b944a6 authored over 2 years ago
Fix cluster hostnames test causing failover while running valgrind (#10991)

In the newly added cluster hostnames test, the primary is failing over during the reboot
for va...

3abdec9969b85fd28ddfa1fbe9730172f5b78b68 authored over 2 years ago
Add optional for FCALL and FCALL_RO command json file (#10988)

According to the Redis functions documentation, FCALL command format could be
FCALL function_na...

2d3240f31b4e7111e6162476bdffd4c1c3794002 authored over 2 years ago
Add an option to specify multiple skip files using `--skipfile` (#10975)

`--skipfile` can be repeated.
For example: ./runtests --skipfile file1.txt --skipfile file2.txt...

847cdca151cd8eac564c079c9a2b4cc706a4ed9c authored over 2 years ago
Avoid valgrind fishy value warning on corrupt restore payloads (#10937)

The corrupt dump fuzzer uncovered a valgrind warning saying:
```
==76370== Argument 'size' of ...

599e59ebc57283f52c60a8de56ec5f44d053109a authored over 2 years ago
Add range check for server port in redis-cli/benchmark (#9854)

Validating inputs ahead of time, to give the end user a slightly more useful error.

20af95a99f333d242e13ffae86e89d6c1167d36f authored over 2 years ago
Cluster test improvements (#10920)

* Restructured testing to allow running cluster tests easily as part of the normal testing

8a4e3bcd8d26a50c6d5f4417102f71f8e2e2d70d authored over 2 years ago
Normalize the style of help information with other documentation (#10965)

8221d481656e3bc109d85dd6523e723d63024ae6 authored over 2 years ago
Simplify arithmetic expression on LP_REPLACE case in lpinsert (#6327)

Remove unnecessary variable name.

53e7de205f95d64604bd036b58072fd572358952 authored over 2 years ago
Trying to fix cluster test (#10963)

#10942 break the new test added in #10449
```
Testing unit: 29-slot-migration-response.tcl
Cl...

693acc0114af6298ab6601ab6d6c668c4e795049 authored over 2 years ago
update help.h (#10961)

b4568fc78a15f7696f7cc0e25aeb943a6319f6b8 authored over 2 years ago
Add cluster-port support to redis-cli --cluster (#10344)

In #9389, we add a new `cluster-port` config and make cluster bus port configurable,
and curren...

35e8ae3eb5f80ebb5cad5b509d1fde56176bca0d authored over 2 years ago
Add --check-system in redis-server usage (#10960)

1e85b89aefe8e7e24a46bd1c8fb251fdab024b74 authored over 2 years ago
Fix crash during handshake and cluster shards call (#10942)

* Fix an engine crash when there are nodes in handshaking and a user calls cluster shards

e6a1b2ea9534053213cb92b08f610f07c381695d authored over 2 years ago
Only print ACL syntax errors once and include command names in errors (#10922)

* Only print ACL syntax errors once and include command names in errors

1209dc2277342491b100f298d311510c86b0a2f2 authored over 2 years ago
Fix some outdated comments and some typo (#10946)

* Fix some outdated comments and some typo

8203461120bf244e5c0576222c6aa5d986587bca authored over 2 years ago
Renaming conduct to code of conduct and contributing files to .md (#10941)

CONTRIBUTING to get better formatting
CONDUCT also because github doesn't seem recognize the co...

0a2e51f9aeb2e9b4178afa26932eb6496fd993f7 authored over 2 years ago
Add pubsubshard_channels field in INFO STATS (#10929)

We already have `pubsub_channels` and `pubsub_patterns`
in INFO stats, now add `pubsubshard_cha...

0132ed754483b3c6a6ddccf45dcab849ee7e7508 authored over 2 years ago
TLS: Notify clients on connection shutdown. (#10931)

Use SSL_shutdown(), in a best-effort manner, when closing a TLS
connection. This change better ...

45ae6053329efce72ba91c1550e1395d0209e850 authored over 2 years ago
Avoid double multiplication of alloc_count (#10934)

9bcdd1537ed6404d4f9def35439af0589f1adf72 authored over 2 years ago
Add tests for error messages during slot migrations (#10449)

* Add tests for error messages during slot migrations

Co-authored-by: Ubuntu <lucas.guang.yan...

f620e6ac739191690fcd48dbbc8164ea256a95fc authored over 2 years ago
Optimize number of realloc syscall during multi/exec flow (#10921)

## Issue
During the MULTI/EXEC flow, each command gets queued until the `EXEC`
command is rece...

a3704d4e87b65a9c071b9dd1ead04cc338d3bc18 authored over 2 years ago
Unlock cluster config file upon server shutdown. (#10912)

Currently in cluster mode, Redis process locks the cluster config file when
starting up and hol...

33b7ff387cbc75b5d53d4c42ec6303c8dbd5f656 authored over 2 years ago
Account sharded pubsub channels memory consumption (#10925)

Account sharded pubsub channels memory consumption in client memory usage
computation to accura...

0ab885a685101522017021ac2d2b46b42d268f26 authored over 2 years ago
Set aof rewrite status in some backgroundRewriteDoneHandler errors (#10923)

We should also set aof_lastbgrewrite_status to C_ERR on these
errors. Because aof rewrite did f...

679344a2b064735b1807ccd70ef318a5829a277b authored over 2 years ago
Fix TLS issues with large replies (#10909)

This problem was introduced by 496375f and seems to more easily reproduce on macOS since OpenSSL...

0b645d63193fb18a6646def558c37f6c7ee5d740 authored over 2 years ago
Fix TLS tests on newer tcl-tls/OpenSSL. (#10910)

Before this commit, TLS tests on Ubuntu 22.04 would fail as dropped
connections result with an ...

69d5576832a02af43f2b1bdc7e94abfc92a27907 authored over 2 years ago
Always set server.aof_last_write_errno in aof write error (#10917)

The `can_log` variable prevents us from outputting too
many error logs. But it should not inclu...

2ab6767744a3b31db9cba7445ae6cc94f33b6d51 authored over 2 years ago
Add SENTINEL command flag to CLIENT/COMMANDS subcommands (#10904)

This was harmless because we marked the parent command
with SENTINEL flag. So the populateComma...

35e836c26d40447f337979a61bb8cb3ed0575796 authored over 2 years ago
Fix CLUSTER RESET command argument number issue (#10898)

Fix regression of CLUSTER RESET command in redis 7.0.

cluster reset command format is:
CLUST...

51da5c3dde38b138c68733977e53eee789e51d10 authored over 2 years ago
Add sharded pubsub keychannel count to client info (#10895)

When calling CLIENT INFO/LIST, and in various debug prints, Redis is printing
the number of pub...

35c2ee8716dc9b1d4edbbb409815a585af491335 authored over 2 years ago
A minor refinement to clusterbus extension estlen (#10902)

069b30a2b329102d60ba70bd3fd7a1d04284e426 authored over 2 years ago
Add missing REDISMODULE_CLIENTINFO_INITIALIZER (#10885)

The module API docs mentions this macro, but it was not defined (so no one could have used it).
...

6af021007a70f42e41f2a8abda3719d68b15ada4 authored over 2 years ago
Support conversion between `RedisModuleString` and `unsigned long long` (#10889)

Since the ranges of `unsigned long long` and `long long` are different, we cannot read an
`unsi...

2854637385f6f44661ebd8833d852c068039e641 authored over 2 years ago
redis-server command line arguments allow passing config name and value in the same arg (#10866)

This commit has two topics.

## Passing config name and value in the same arg
In #10660 (Redi...

d443e312ad130a821964b430770c881f710e6cb8 authored over 2 years ago
Add RM_SetClientNameById and RM_GetClientNameById (#10839)

Adding Module APIs to let the module read and set the client name of an arbitrary connection.

6272ca609e67d1f35dda50a82027d7401892e383 authored over 2 years ago
Sync argv_len var back after command call in execCommand (#10900)

This is harmless, we only restore mstate to make sure we
free the right pointer in freeClientMu...

d96cf3639a371574c212d87c70e5a80214fc721f authored over 2 years ago
Replace regular array to array of structs to get rid of false sharing (#10892)

There are a lot of false sharing cache misses in line 4013 inside getIOPendingCount function.
T...

e2cf386765ddee7cf732a68b4639fac9c489e488 authored over 2 years ago
changing min,max in ZRANGE -> start stop (#10097)

In 6.2.0 with the introduction of the REV subcommand in ZRANGE, there was a semantic shift in th...

a64b29485d4f2359b9d698c0e21e890a212ad1bb authored over 2 years ago
migrateGetSocket() cleanup.. (#5546)

I think parameter c is only useful to get client reply.
Besides, other commands' host and port ...

64205345bcaf20d322b96a464a03912e33faff78 authored over 2 years ago
When dirCreateIfMissing or openNewIncrAofForAppend fail, set aof_lastbgrewrite_status to err (#10775)

It will be displayed in the `aof_last_bgrewrite_status`
field of the INFO command.

755b51a42c7b0dd570b80d9893ae26d94d71e39c authored over 2 years ago
command prompt help: add stdin config usage (#6313)

Signed-off-by: Mostafa Hussein <[email protected]>

c52922e1d9d94a7aea705d3f91e0185ef2a9cfae authored over 2 years ago
fix benchmark failure in daily test with TLS (#10896)

The new test added in #10891 can fail with a different error.
see comment in networking.c sayin...

d2405b9b6bf1d4e6b84d3974a52fabcbeac533f1 authored over 2 years ago
Add bus_port argument in cluster-meet.json (#10304)

In `CLUSTER MEET`, bus-port argument was added in 11436b1.
For cluster announce ip / port imple...

aabce8932a8ef3617301b142447e05c622b48830 authored over 2 years ago
fix redis-benchmark's bug: check if clients are created successfully in idle mode (#10891)

my maxclients config:
```
redis-cli config get maxclients
1) "maxclients"
2) "4064"
```

...

49876158cc2e77bba8e4658fa757891310dc37b6 authored over 2 years ago
Module API docs corrections (#10890)

* Fix typo `RedisModule_CreatString` -> `RedisModule_CreateString` (multiple occurrences)
* Mak...

02acb8fd3a6ec38cabad8dde520ccf0f359bd6ec authored over 2 years ago
Fix crash on RM_Call with script mode. (#10886)

The PR fixes 2 issues:

### RM_Call crash on script mode

`RM_Call` can potentially be calle...

61baabd8d5cd9178f48b6fad79ae3cb477ef0a11 authored over 2 years ago
Outdated comments, replace COUNTER_INIT_VAL with LFU_INIT_VAL, fix typo (#10888)

`COUNTER_INIT_VAL` doesn't exist in the code anymore so we can replace it with `LFU_INIT_VAL` en...

a3fdc9cd82076ece0796d460a3de0dc60717d21e authored over 2 years ago
Set replicas' configEpoch to 0 when loaded from cluster configuration file (#10798)

* Changed clusterLoadConfig to set the config epoch of replica nodes to 0 when loaded.

091701f363da953695b52cd7b4d7668d47f0258e authored over 2 years ago
Optimize the performance of clusterSendPing for large clusters (#10624)

Optimize the performance of clusterSendPing by improving speed of checking for duplicate items i...

ff6419658bd8c8800734a7f19520c2aa7cd68a90 authored over 2 years ago
Fsync directory while persisting AOF manifest, RDB file, and config file (#10737)

The current process to persist files is `write` the data, `fsync` and `rename` the file,
but a ...

99a425d0f3b7b00896cb855d5de4ae93be1fe3f0 authored over 2 years ago
Fix sentinel acl change test. Timing issue. (#10868)

Co-authored-by: moticless <[email protected]>

4c72a09b78f6adcc3657b0d1b7ce64f2dd028c72 authored over 2 years ago
Fix a prototype inconsitency of `_serverAssert` between redisassert.h and redis.h (#10872)

both redisassert.c and server.h + debug.c use const, but redisassert.h doesn't.

f2387daa837ea2ec58899f76b0d2b63cbc1f8db9 authored over 2 years ago
DEPRECATED rename-command config in sentinel (#10877)

Clients could use this config in sentinel only when they already add rename-command in the redis...

c37d63e87a7eb302419f81f36aec5afc817598d6 authored over 2 years ago
Correct 'certificate' typo. (#10867)

a4754e228fda51e4fd136d6e728eb1fc1923e5df authored over 2 years ago
optimize zset conversion on large ZRANGESTORE (#10789)

when we know the size of the zset we're gonna store in advance,
we can check if it's greater th...

2189100383ca06f8c8f163b340a265d018d9ebe9 authored over 2 years ago
Script that made modification will not break with unexpected NOREPLICAS error (#10855)

If a script made a modification and then was interrupted for taking too long.
there's a chance ...

8ef4f1dbad3c40dc90920c4aaa8a2f9f72637786 authored over 2 years ago
Allow ECHO in loading and stale modes (#10853)

I noticed that scripting.tcl uses INFO from within a script and thought it's an
overkill and co...

ffa007704122a3e4947252f3dbbef3e2be4b6033 authored over 2 years ago
Fix 2 comments in dict.c & redis-cli.c (#10860)

* fix comment in dict.c

fix comment in dict.c

* Fix comment in redis-cli.c

Fix comment ...

c65e5087e8e88104f7cdd640aa9d1af0737561a3 authored over 2 years ago
Throw -TRYAGAIN instead of -ASK on migrating nodes for multi-key commands when the node only has some of the keys (#9526)

* In cluster getNodeByQuery when target slot is in migrating state and
the slot lack some keys ...

78960ad57b8a5e6af743d789ed8fd767e37d42b8 authored over 2 years ago
redis-check-rdb add when_opcode check for module aux (#10859)

In #9199, we add a `goto eoferr` in when_opcode check,
this means that if the when_opcode check...

0a2f78837d82046ec7ffe77f8a2addcb591ff4f7 authored over 2 years ago
Fix typo in replication.c (#10854)

d4595dd94ff35e090fae02c0ca63b742faf237f9 authored over 2 years ago
Correctly check for vm.overcommit_memory == 0 (#10841)

A regression caused by #10636 (released in 7.0.1) causes Redis startup warning about overcommit ...

9f3b410050d998110ae91c2ac49f832ce0ba2629 authored over 2 years ago
Fix 3 comments in server.c (#10844)

abb2ea7e3caee9f41aeee2f955d00c905f9f2079 authored over 2 years ago
Fixed SET and BITFIELD commands being wrongly marked movablekeys (#10837)

The SET and BITFIELD command were added `get_keys_function` in #10148, causing
them to be wrong...

92fb4f4f61bc430aec30105e24d1dc148a4d6466 authored over 2 years ago
Fix crash when overcommit_memory is inaccessible (#10848)

When `/proc/sys/vm/overcommit_memory` is inaccessible, fp is NULL.
`checkOvercommit` will retur...

62ac1ab007b9ba25588671fdefd0025028030504 authored over 2 years ago
Fixing test to consider statically linked binaries (#10835)

The test calls `ldd` on `redis-server` in order to find out whether the binary
was linked again...

032619b82b6c9b882dc99c22bdab020a865489fa authored over 2 years ago
Update some comments in stream command docs (#10821)

some small documentation fixes.

6e1c3ff132ab99602e4e71c1ccaa5795b0d996e7 authored over 2 years ago
Module api doc generator, fixing issue with negative lookback terminating at "." (#10832)

There is a little regex that wraps up all the free-floating functions in the doc-block
e.g. mal...

9e40b076dd570cd7ecf27e1e8a6ca8d7fabf2302 authored over 2 years ago
Update musl libc detection pattern (#10826)

This change fixes failing `integration/logging.tcl` test in Gentoo with
musl libc, where `ldd` ...

f22bfe86b6db59ae6d5357b44f9e86418746c31c authored over 2 years ago
Increment the stat_rdb_saves counter in SAVE command (#10827)

Currently, we only increment stat_rdb_saves in rdbSaveBackground,
we should also increment it i...

ae9764ea0a6bb3cfeff9baae2d4fd748a53d1864 authored over 2 years ago
fix unused argument warning in ae_select.c (#10824)

b8665b879b760d13d103a00667a6277e372ea18b authored over 2 years ago
Documentation fixes of `BITFIELD_RO` and `XINFO STREAM` (#10823)

Correcting the introduction version of the command `BITFIELD_RO`
Command added by commit: b3e4a...

1067cfb34bb49cd69e3d73cad1818b784c6e1014 authored over 2 years ago
Handle multiple_token flag in generate-command-help.rb (#10822)

Currently generate-command.help.rb dose not handle the
multiple_token flag, handle this flag in...

3d56f607b7083aff7606aeb19068d48f19a73059 authored over 2 years ago
Fix bitfield_ro documentation (#10820)

Current documentation only states a single GET token is needed which is not true. Marking the co...

b4772f63810de3099c3cfcb073c2041349f05fc1 authored over 2 years ago