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

update help.h (#10818)

before releasing 7.0.1

b0272252f7ade8dd9894d9375a456c5da7f994b1 authored over 2 years ago
crash report instructions (#10816)

Trying to avoid people opening crash report issues about module crashes and ARM QEMU bugs.

475563e2e941ebbdb83f50474bf2daa5ae276fcf authored over 2 years ago
Split instantaneous_repl_total_kbps to instantaneous_input_repl_kbps and instantaneous_output_repl_kbps. (#10810)

A supplement to https://github.com/redis/redis/pull/10062
Split `instantaneous_repl_total_kbps`...

f55858349344b40168cd83d645b5636295eb92a6 authored over 2 years ago
Update cluster.c (#10773)

On line 4068, redis has a logical nodeIsSlave(myself) on the outer if layer,
which you can dele...

c751d8a686aa298d591ccf18adf5d1cc19808a4c authored over 2 years ago
some minor spelling/grammatical fixes to module.c (#10812)

247e792bde45ab36cbbaecad5c7f9d5660bbff01 authored over 2 years ago
Update time independent string compare to use hash length (#9759)

* Update time independent string compare to use hash length

4ad166235efe0fc2662e5e91b3b3429b51ce4862 authored over 2 years ago
rewrite alias config to original name (#10811)

Redis 7 adds some new alias config like `hash-max-listpack-entries` alias `hash-max-ziplist-entr...

a18c91d6423777dffd6afca80d32bf1964f449e6 authored over 2 years ago
Only print final log when aof is loaded successfully (#10808)

Skip the print on AOF_NOT_EXIST status.

aae0ec255327e431221f3946b953321246fc8a3b authored over 2 years ago
Fix bugs in CONFIG REWRITE, omitting rename-command and include lines, and inserting comments around module and acl configs (#10761)

A regression from #10285 (redis 7.0).
CONFIG REWRITE would put lines with: `include`, `rename-c...

cf3323dba473f3849200d294bb0349cd442f2006 authored over 2 years ago
Fix Lua compile warning (#10805)

Apparently, GCC 11.2.0 has a new fancy warning for misleading indentations.
It prints a warning...

c81b5e5594e7a57753bbfd5e140ba8bf0732b987 authored over 2 years ago
Expose script flags to processCommand for better handling (#10744)

The important part is that read-only scripts (not just EVAL_RO
and FCALL_RO, but also ones with...

df558618389a578b5eff7f60c9526e64952b74fb authored over 2 years ago
Fix broken protocol in MISCONF error, RM_Yield bugs, RM_Call(EVAL) OOM check bug, and new RM_Call checks. (#10786)

* Fix broken protocol when redis can't persist to RDB (general commands, not
modules), excess...

b2061de2e713d304ab8e845162888cca47ee32d3 authored over 2 years ago
Moving client flags to a more cache friendly position within client struct (#10697)

Move the client flags to a more cache friendly position within the client struct
we regain the ...

6a6e911f126ceacc847c82d592aaf41cce310162 authored over 2 years ago
Add module API RM_MallocUsableSize (#10795)

This allows the module to know the usable size of an allocation
it made, rather than the consum...

42fbf064d1448b44a149d55ba859109780725d01 authored over 2 years ago
rename channel to shardchannel in sharded pubsub commands (#10738)

since the sharded pubsub is different with pubsub, it's better to give users a hint to make it m...

805191c791e1f84618c1f69dacec27ac3fecd1e4 authored over 2 years ago
Adds isolated netstats for replication. (#10062)

The amount of `server.stat_net_output_bytes/server.stat_net_input_bytes`
is actually the sum of...

bb1de082eac26d5242733eb0b40959bd9de2e15b authored over 2 years ago
Sharded pubsub publish messagebulk as smessage (#10792)

To easily distinguish between sharded channel message and a global
channel message, introducing...

4065b4f27efc539b86beb63829bc148a02adecb1 authored over 2 years ago
Fix streamParseAddOrTrimArgsOrReply function minor comment issue (#10783)

When I read the source codes, I have no idea where the option "age" come from.

Co-authored-...

d7ae858745f722b845d3540a437f89a7fb8d0bb2 authored over 2 years ago
Add readonly flag to EVAL_RO, EVALSHA_RO and FCALL_RO (#10728)

* Add readonly flag to EVAL_RO, EVALSHA_RO and FCALL_RO
* Require users to explicitly declare @...

ed29d634b3844d2c6af099e22f3bd6bf316edab9 authored over 2 years ago
fixes function cache_memory accounting stats bug (#10791)

This bug resulted in wrong memory usage statistics after a redis function library is removed.

...

7a550c8bbbf55bdc56a45b9c728b45408d620bc5 authored over 2 years ago
loadAppendOnlyFiles and loadSingleAppendOnlyFile ret should be AOF_OK, not C_OK (#10790)

The ret value should be AOF_OK instead of C_OK.
AOF_OK and C_OK are both 0, so this is just a c...

f18c9da3e196e337fdc0b8bcddad2d1cdfe8ed02 authored over 2 years ago
fix typo in quicklist.c (#10785)

fix typo ` the largest possible limit is 16k` -> ` the largest possible limit is 64k`.
The coun...

2f5edd03e6d25f400a6eade67d08c329adc8ef12 authored over 2 years ago
Fix sentinel disconnect test timing issue after auth-pass change (#10784)

There is a timing issue reported in test-sanitizer-address (gcc):
```
Sentinels (re)connection...

1013cbeae2060bf14b9b430f3ae1f1bf9a0aad1c authored over 2 years ago
Fix ZRANGESTORE crash when zset_max_listpack_entries is 0 (#10767)

When `zrangestore` is called container destination object is created.
Before this PR we used t...

6461f09f433b78e3d69650a1377ac0574cb87378 authored over 2 years ago
Fix some commands key spec in json files (#10779)

There are some commands that has the wrong key specs.
This PR adds a key-spec related check in ...

2a099d49d457239201b38c3ec97054a167658b6e authored over 2 years ago
Fix outdated comment about flags in moduleCreateArgvFromUserFormat (#10781)

Clearly more than one flag exists, also fixed some typos.
Fixes #10776

6f7c1a8ce6861fb382f8313d07a6e2a13217a690 authored over 2 years ago
improve logging around AOF file creation and loading (#10763)

instead of printing a log when a folder or a manifest is missing (level reduced), we print:

t...

f28e2ce7a4cf4a82d367c106eee4b3113b85bcbf authored over 2 years ago
Added the function name/script sha to the script timeout log message. (#10780)

Added the function name/script sha to the script timeout log message.
This info existed in the ...

ad25716a756b6403790eff85d108efa2d63b668c authored over 2 years ago
Fix regex support in --only, --skipfile and --skiptest (#10741)

The regex support was added in:
* https://github.com/redis/redis/pull/9352
* https://github....

9eb97b5d94ca4434f9035af164fe3a48dca31de2 authored over 2 years ago
Fix BZMPOP gets unblocked by non-key args and returns them (#10764)

This bug was introduced in #9484 (7.0.0).
It result that BZMPOP blocked on non-key arguments.
...

450c88f368317ae9d2d3d597cf121999660e2934 authored over 2 years ago
Add warning for suspected slow system clocksource setting (#10636)

This PR does 2 main things:
1) Add warning for suspected slow system clocksource setting. This ...

843a4cdc075a5b251e1b154f8013a9e0abe1038b authored over 2 years ago
Scripts that declare the `no-writes` flag are implicitly `allow-oom` too. (#10699)

Scripts that have the `no-writes` flag, cannot execute write commands,
and since all `deny-oom`...

b0e18f804d016dd6664c71920d6c290c0af08909 authored over 2 years ago
Updated HDR histogram from upsteam after they merged our fix in #10606. (#10755)

The code is based on upstream https://github.com/HdrHistogram/HdrHistogram_c
master branch late...

cb6933e3463ff23c33129722d30e8d5062397be3 authored over 2 years ago
Remove ziplist dead code in object.c (#10751)

Remove some dead code in object.c, ziplist is no longer used in 7.0

Some backgrounds:
zipmap...

18cb4a7d938d01981e9f6c565532a2056ceb269b authored over 2 years ago
Fix memory leak in streamGetEdgeID (#10753)

si is initialized by streamIteratorStart(), we should call
streamIteratorStop() on it when done...

4a7a4e42db8ff757cdf3f4a824f66426036034ef authored over 2 years ago
Add SIGINT handler to redis-cli --bigkeys, --memkeys, --hotkeys, --scan (#10736)

Finish current loop and display the scanned keys summery on SIGINT (Ctrl-C) signal.
It will als...

00a9d6b3147143b7ed3f208f3924ff46c31e1fd9 authored over 2 years ago
Fix typos in module comment / documentation (#10740)

minor cleanup in redismodule.h and module.c

60250f50c2f308d301fb0bfcb6d07faa2560ce60 authored over 2 years ago
Add const qualifier to config name parameter in RM_RegisterBoolConfig() (#10733)

was present in the C file and missing in the header.

f62d52a5ad794513ca21168becfd06c532d2b704 authored over 2 years ago
Replica fail and retry the PSYNC if the master is unresponsive (#10726)

We observed from our replication testing that when the master becomes unresponsive,
or the repl...

837c063baf103c4389d8109ff0ef7fa8576a90d5 authored over 2 years ago
Make the check for if script is running or not consistent (#10725)

sometimes it is using `scriptIsRunning()` and other times it is using `server.in_script`.
We sh...

a7d6ca9770933b7d9fec7c137232831f08ba7ccc authored over 2 years ago
Remove a redundant free in freeClient (#10721)

4b262182d95f286222039ee52fc420eb1f9bb955 authored over 2 years ago
re-add SENTINEL SLAVES command, missing in redis 7.0 (#10723)

Alias was mistakenly forgotten when the sub commands introduced as json files.

acd517c88331d0678957e09486aad3453e746ad0 authored over 2 years ago
Update comments on command args, and a misleading error reply (#10645)

Updated the comments for:
info command
lmpopCommand and blmpopCommand
sinterGenericCommand
...

135998ed8d0fc92d7ee6e23b1a66353f5900695f authored over 2 years ago
Fix race in module fork kill test (#10717)

The purpose of the test is to kill the child while it is running.
From the last two lines we ca...

586a16ad7907d9742a63cfcec464be7ac54aa495 authored over 2 years ago
Fix possible regression around TLS config changes. Add VOLATILE_CONFIG flag for volatile configurations. (#10713)

This fixes a possible regression in Redis 7.0.0, in which doing CONFIG SET
on a TLS config woul...

b16d1c2713c2894eadc5d0973b37aeff76382985 authored over 2 years ago
Update security page with supported versions. (#10712)

b414605285244c453f3fadbbe7a157cd83ed5f59 authored over 2 years ago
Fix Makefile.dep generation with ICC. (#10708)

Before this commit, all source files including those that are not going
to be compiled were use...

8bdd2d5ddd4dbd8f731eed1b7fc4c156e30bf453 authored over 2 years ago
redis-server command line arguments support take one bulk string with spaces for MULTI_ARG configs parsing. And allow options value to use the -- prefix (#10660)

## Take one bulk string with spaces for MULTI_ARG configs parsing
Currently redis-server looks ...

bfbb15f75d497945894fcbeea85473b47f84c2d5 authored over 2 years ago
FLUSHDB and FLUSHALL add call forceCommandPropagation / FLUSHALL reset dirty counter to 0 if we enable save (#10691)

## FLUSHALL
We used to restore the dirty counter after `rdbSave` zeroed it if we enable save.
...

783b210db4b79cdd1313a8196ea58fa5ad999fd1 authored over 2 years ago
Dediacted member to hold RedisModuleCommand (#10681)

Fix #10552

We no longer piggyback getkeys_proc to hold the RedisModuleCommand struct, when ex...

815a6f846a3836b87a4601e5ce6152d8d534dce1 authored over 2 years ago
Replace float zero comparison to FP_ZERO comparison (#10675)

I suggest to use "[fpclassify](https://en.cppreference.com/w/cpp/numeric/math/fpclassify)" for f...

c2d8d4e648faa172a65a88fcffaf4ccc10a1ad78 authored over 2 years ago
CLUSTER SHARDS should returns slots as integers, not strings (#10683)

It used to returns slots as strings, like:
```
redis> cluster shards
1) 1) "slots"
2) 1) ...

2a1ea8c7d811cb4461cd42a0c7b811910c80fcb2 authored over 2 years ago
Fix #10705, avoid relinking the same library twice. (#10706)

Set `old_li` to NULL to avoid linking it again on error.
Before the fix, loading an already exi...

442e73ea092905cef8f25bf0ac883e90f0666e89 authored over 2 years ago
Fix cursor type in RedisModuleScanCursor (#10698)

Changed cursor's type from `int` to `unsigned long`
allows handling database or key with more t...

a3df2777e8e4c8a9af56bcc8b1587e0838466285 authored over 2 years ago
fix some typos in "t_zset.c" (#10670)

fix some typo in "t_zset.c".
1. `zzlisinlexrange` the function name mentioned in the comment is...

6b44e4ea92edd0f06971b5b7354769255fde66a8 authored over 2 years ago
Fix --save command line regression in redis 7.0.0 (#10690)

Unintentional change in #9644 (since RC1) meant that an empty `--save ""` config
from command l...

2bcd890d8aa645cab0d8fd0ed765c52a997de4f5 authored over 2 years ago
Bug fixes for enum configs with overlapping bit flags (module API) (#10661)

If we want to support bits that can be overlapping, we need to make sure
that:
1. we don't use...

eb915a82a5f4d7fd6c36ad1710b35e2b0c2abd31 authored over 2 years ago
Fix RM_Scan() documentation (#10693)

Fixed RM_Scan() usage example: `RedisModuleCursor` -> `RedisModuleScanCursor`

8fc959216cbea4af100dd38011a1b5466d0628bb authored over 2 years ago
zmalloc_get_rss implementation for haiku. (#10687)

also fixing already defined constants build warning while at it.

Co-authored-by: Oran Agra <o...

bdcd4b3df81fdd7247a3fd1f1013e5cb8bae7659 authored over 2 years ago
update redismodule notify defines to be in sync with server (#10688)

this seems to have been an oversight. syncing the flags so that NOTIFY_NEW is available to modul...

4e761eb7e2a4317f1ca27bf04e68c87e0e81d137 authored over 2 years ago
Bump github/codeql-action from 1 to 2 (#10635)

* Bump github/codeql-action from 1 to 2

Bumps [github/codeql-action](https://github.com/githu...

ff3a3577f29a07e965b3b38d07894410d28da499 authored over 2 years ago
Module API doc script: Mark unreleased API functions (#10674)

* Module API doc script: Mark unreleased API functions

* fix broken quotes in generate-module...

ced710fc8304fd24251514c87bd15008b2a3b1dd authored over 2 years ago
Expose Lua error in case of string error. (#10677)

In general, our error handler make sure the error
object is always a table. In some rare cases ...

f44c34329217a46a8918c476ba3690b6a102c696 authored over 2 years ago
fast path when SDIFF command has the same key as the first key (#10663)

When user uses the same input key for SDIFF as the first one, the result must be empty, so we do...

87131a5fa612c0d2b688fc65c722ebc95ae8f42a authored over 2 years ago
cleanup: use ZIPLIST_ENTRY_END macro instead of 1 (#3672)

update macros ZIPLIST_ENTRY_END i think the right definition is ((zl)+intrev32ifbe(ZIPLIST_BYTES...

9c39256a28eff24e16ca373a02729e775e37d05a authored over 2 years ago
support tcp-keepalive config interval on macOs (#10667)

Till now, on MacOS we only used to enable SO_KEEPALIVE,
but we didn't set the interval which is...

ef68deb3c2a4d6205ddc84141d4d84b6e53cbc1b authored over 2 years ago
fix typo in 'setTypeRandomElement' (#10662)

`the redis object pointer was populated.` -> `the sds pointer was populated.`
We don't populate...

1666ffbe1f930c90b38584b79e547f7378549eca authored over 2 years ago
add comment to 'container' in 'quicklist.h' (#10656)

add a comment to `container` in `quicklist.h`.
Because `PLAIN` and `PACKED` are not as easy to ...

02080f2686040cd927c24e8009fc33744cb16a3b authored over 2 years ago
Injects Hugo FrontMatter to module-api.md (#10658)

6c65345edb891da558a6cf53861e98bf2e0dbb63 authored over 2 years ago
Update the comments of commands introduced or updated in redis 7.0 (#10659)

f36eac9f68308e712c3f10de11c05982df03b0c6 authored over 2 years ago
Merge pull request #10651 from oranagra/meir_lua_readonly_tables

# Lua readonly tables
The PR adds support for readonly tables on Lua to prevent security vulner...

89772ed827209c3dca376644498a235ef3edf692 authored over 2 years ago
Delete renamed new incr when write manifest failed (#10649)

Followup fix for #10616

e24d46004b115adb57c0a67e64081e5f6692188a authored over 2 years ago
Protect any table which is reachable from globals and added globals white list.

The white list is done by setting a metatable on the global table before initializing
any librar...

efa162bcd7ab1477c07d8ee85537e27c0cb1524b authored over 2 years ago
Protect globals of both evals scripts and functions.

Use the new `lua_enablereadonlytable` Lua API to protect the global tables of
both evals scripts...

3731580b6b80c586322cadc6bc4be2b8b2bbb206 authored over 2 years ago
Added support for Lua readonly tables.

The new feature can be turned off and on using the new `lua_enablereadonlytable` Lua API.

8b33d813a3d47d4daeaaef03b7e42a51f6931f79 authored over 2 years ago
Move user eval function to be located on Lua registry.

Today, Redis wrap the user Lua code with a Lua function.
For example, assuming the user code is:...

992f9e23c7ee819ad0dfac0bd6224d8330366960 authored over 2 years ago
Add module API flag for using enum configs as bit flags (#10643)

Enables registration of an enum config that'll let the user pass multiple keywords that
will be...

81926254586f64fc6a9b393bf9afb0d2eacc5234 authored over 2 years ago
Fix bug when AOF enabled after startup. put the new incr file in the manifest only when AOFRW is done. (#10616)

Changes:

- When AOF is enabled **after** startup, the data accumulated during `AOF_WAIT_REWRI...

46ec6ad98e6d118bd98a447dcd2307e80bb0fcd6 authored over 2 years ago
Allow configuring signaled shutdown flags (#10594)

The SHUTDOWN command has various flags to change it's default behavior,
but in some cases estab...

3a1d14259d5a1cec90a5afa50a49e4d9d881ab37 authored over 2 years ago
Fix syntax error in replicationErrorBehavior enum (#10642)

Missing a typeof, we will get errors like this:
- multiple definition of `replicationErrorBehav...

156836bfe500a2dce9319fdba259d40735421a38 authored over 2 years ago
Set replicas to panic on disk errors, and optionally panic on replication errors (#10504)

* Till now, replicas that were unable to persist, would still execute the commands
they got f...

6fa8e4f7afcbd14748c736c38e5fbc117eaef7ba authored over 2 years ago
By default prevent cross slot operations in functions and scripts with # (#10615)

Adds the `allow-cross-slot-keys` flag to Eval scripts and Functions to allow
scripts to access ...

efcd1bf394668e418df1a93cd28cf9e8b0c09ce5 authored over 2 years ago
fix broken protocol regression from #10612 (#10639)

A change in #10612 introduced a regression.
when replying with garbage bytes to the caller, we ...

79ffc3524dc3d1222685cacc236f417d09459bae authored over 2 years ago
Fix typos and limit unknown command error message (#10634)

minor cleanup for recent changes.

119ec91a5aa9b655d700d911eae68e8a5fa694d4 authored over 2 years ago
fix an unclear comment and add a comment to 'zi' in 'quicklist.h' (#10633)

fix an unclear comment quicklist container formats to quicklist node container formats
Add a co...

0c35f54f0a12b3dada3e7156f6595af4a089e24e authored over 2 years ago
Fix regression not aborting transaction on error, and re-edit some error responses (#10612)

1. Disk error and slave count checks didn't flag the transactions or counted correctly in comman...

df787764e37ba5958d5b902eef3847ec7185b156 authored over 2 years ago
Test: RM_Call from within "expired" notification (#10613)

This case is interesting because it originates from cron,
rather than from another command.

...

21e39ec461cf412609475054a9755941df9365bf authored over 2 years ago
Run large-memory tests as solo. (#10626)

This avoids random memory spikes and enables --large-memory tests to run
on moderately sized sy...

bd823c7fa3bce983be79835f9a306d4d7c15e31e authored over 2 years ago
isSafeToPerformEvictions: Remove redundant condition (#10610)

If was first added in #9890 to solve the problem of
CONFIG SET maxmemory causing eviction insid...

8ad0cfa56cdf2accf25f1eb1a66c3e2e5b09a953 authored over 2 years ago
Fix timing issue in slowlog redact test (#10614)

* Fix timing issue in slowlog redact test

This test failed once in my daily CI (test-sanitize...

a6b3ce28a8050b257659db479a3c8f1d38edbfd1 authored over 2 years ago
Fix typo in function name "harndfieldReplyWithListpack" to "hrandfieldReplyWithListpack" (#10623)

698e7cbba68aaef86da731ca350279403acdd568 authored over 2 years ago
fix typo in "lcsCommand" doc comment (#10622)

fix typo. `LCS[j+(blen+1)*j]` -> `LCS[j+(blen+1)*i]`

719b7665860674b9dcf69c4141fb19727b03a250 authored over 2 years ago
Optimization: Use either monotonic or wall-clock to measure command execution time, to regain up to 4% execution time (#10502)

In #7491 (part of redis 6.2), we started using the monotonic timer instead of mstime to measure
...

3cd8baf61610416aab45e0bcedcaab9beae80184 authored almost 3 years ago
Fixes around clients that must be obeyed. Replica report disk errors in PING. (#10603)

This PR unifies all the places that test if the current client is the
master client or AOF clie...

ee220599b0481cf4b10e8a5293691258fd6f35a6 authored almost 3 years ago
Stop RDB child before flushing and parsing the RDB in Diskless replication too (#10602)

We should stop RDB child in advance before flushing to reduce COW in diskless replication too.
...

046654a70e604413c3a91a97e621351c64b0e6ad authored almost 3 years ago
Optimized `hdr_value_at_percentile` (#10606)

`hdr_value_at_percentile()` is part of the Hdr_Histogram library
used when generating `latencys...

5075e74366c99033886bce13fcd504a2c57fa180 authored almost 3 years ago
Add socket-mark-id support for marking sockets. (#10349)

Add a configuration option to attach an operating system-specific identifier to Redis sockets, s...

aba2865c8680326e148ba6eb4cb6f6e7ab5119a3 authored almost 3 years ago
Tests: improve skip tags around maxmemory and resp3 (#10597)

some skip tags where missing on some tests....

a1c85eebf4aaac0727456329e2f18bd99d23dfbe authored almost 3 years ago
Add comment to sdsConfigSet() (#10605)

Improve comments to explain the code

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

295cbf297f3ec1ccb0bb07559bedaf441936d249 authored almost 3 years ago
Fixes around AOF failed rewrite rate limiting (#10582)

Changes:
1. Check the failed rewrite time threshold only when we actually consider triggering a...

d4cbd8140bb18ccec6af1561f6c2067f8c00a7b0 authored almost 3 years ago