Commit Graph
9203 Commits
Author SHA1 Message Date
John Sully fbaa46505c Merge branch 'unstable' into redis_6_merge
Former-commit-id: 18a5f46b61
2020-02-11 02:39:08 -05:00
John Sully d4c1e98124 Implement an error handler so bug #125 can't happen
Former-commit-id: 16a019dba0
2020-02-11 01:41:00 -05:00
John Sully fef9925b7f Fix higher latency at low load by grouping clients to threads. This fixes slow perf in cluster benchmarks mentioned in issue #102
Former-commit-id: 1a4c3224c9
2020-02-11 01:00:21 -05:00
John Sully e4d74b993f Fix cases where duplicate RREPLAY is applied
Former-commit-id: c3317686f8
2020-02-11 00:59:07 -05:00
John Sully 30ece138d5 Fix issue #119
Former-commit-id: 4622472123
2020-02-10 19:52:57 -05:00
John Sully 68235881e9 Fix memory leak in cron
Former-commit-id: f1748f8c76
2020-02-10 18:26:04 -05:00
John Sully d346ad7734 Add missing test file
Former-commit-id: 0c101dccc8
2020-02-10 18:15:29 -05:00
John Sully eac3cffe41 CLANG build fix
Former-commit-id: dc78bf1ccb
2020-02-10 00:29:26 -05:00
John Sully 25ef65463e Ensure multi-master works for ring topologies
Former-commit-id: a7cc3aac28
2020-02-10 00:25:03 -05:00
John Sully d292477625 Merge branch 'unstable' of https://github.com/JohnSully/KeyDB into unstable
Former-commit-id: 339631530a
2020-02-09 02:25:20 -05:00
John Sully 6c2cef7687 Addmissing test file
Former-commit-id: fb2bdf7d05
2020-02-08 16:49:41 -05:00
John Sully bf83742b4f merge 5.0 unstable
Former-commit-id: c45f1328ac
2020-02-07 16:45:59 -05:00
John Sully eabc436814 Fix issue #137 and #132
Former-commit-id: 050d58007f
2020-02-06 23:31:31 -05:00
John Sully 8800a516d1 Add test to detect issue #137 and #132
Former-commit-id: 49d86746ed
2020-02-06 23:31:12 -05:00
John Sully 6bb1429a46 module fixes
Former-commit-id: ef4e11ecb8
2020-02-04 01:22:25 -05:00
John Sully 771787273a Fix cluster test failures from Redis 6 merge
Former-commit-id: fd702e43f1
2020-02-03 20:00:09 -05:00
John Sully ae0a3e9f65 addRef memory model too restrictive
Former-commit-id: 249e0fdd36
2020-02-01 21:52:17 -05:00
John Sully 8ea5d731ad RDB memory leaks
Former-commit-id: 6208118b13
2020-01-30 17:57:10 -05:00
John Sully 24c9edd93b replication memory leaks
Former-commit-id: 73020b6a93
2020-01-30 17:56:24 -05:00
John Sully 1cfc7071f5 Fix memory leak in cron
Former-commit-id: a9667e84ad
2020-01-30 17:55:48 -05:00
John Sully 8f9fc831a6 Merge branch 'redis_merge' into unstable
Former-commit-id: ab1524ff1a
2020-01-30 16:05:40 -05:00
John Sully ae344960f1 CRON jobs were running half as often as required
Former-commit-id: 1069d0b4bf
2020-01-28 21:40:40 -05:00
John Sully 1adc5e9832 More threading fixes from merge
Former-commit-id: 4a980f4ddb
2020-01-28 17:54:00 -05:00
John Sully d9c070408b reenable multithreading after merge
Former-commit-id: 9fbb9a551e
2020-01-27 19:59:04 -05:00
John Sully 527aeda2db cron reliability
Former-commit-id: c24a7c03c2
2020-01-27 18:31:02 -05:00
John Sully d57e98ac5e fix expire test failures during overwrite
Former-commit-id: 5a8280d577
2020-01-27 18:26:23 -05:00
John Sully 14188ef92d Fix most tests (still some failures)
Former-commit-id: da83e84125
2020-01-27 18:16:19 -05:00
John Sully 6193e9ad4f Merge remote-tracking branch 'redis/6.0' into redis_merge
Former-commit-id: ef9a3cadcf
2020-01-27 02:55:48 -05:00
John Sully 3be0eac7b6 Missing cron files
Former-commit-id: c983d57f73
2020-01-21 19:51:16 -05:00
John Sully 1116b63a0e Initial implementation of the CRON command
Former-commit-id: 3204a39ada
2020-01-21 19:50:28 -05:00
John Sully 9af43f254d Merge branch 'unstable' of https://github.com/JohnSully/KeyDB into unstable
Former-commit-id: 762396d997
2020-01-11 16:35:06 -05:00
John Sully b9b8272724 Avoid crash due to excessive posted functions for AOF rewrite
Former-commit-id: aa6409f2e8
2020-01-11 16:34:09 -05:00
John Sully 18cc4b3ebe Ignore other flags after pro is enabled since we won't understand them
Former-commit-id: 049b48ef79
2020-01-10 17:46:02 -05:00
John Sully 900e596440 Update README.md
Former-commit-id: 0ba0a6ab0a
2020-01-10 14:21:11 -05:00
John Sully 09ff507ee9 Update graphs
Former-commit-id: 7475ea1b0b
2020-01-10 14:19:44 -05:00
ShooterIT 4e0c2ff1d8 Rename rdb asynchronously 2020-01-10 13:16:25 +01:00
Leo Murillo b6caf319e5 Fix bug on KEYS command where pattern starts with * followed by \x00 (null char). 2020-01-10 13:16:25 +01:00
Jamie Scott 0b36c7eb26 Update to directive in redis.conf (missing s)
The directive tls-prefer-server-cipher is actually tls-prefer-server-ciphers in config.c. This results in a failed directive call shown below. This pull request adds the "s" in ciphers so that the directive is able to be properly called in config.c

ubuntu@ip-172-31-16-31:~/redis$ src/redis-server ./redis.conf 

*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 200
>>> 'tls-prefer-server-cipher yes'
Bad directive or wrong number of arguments
2020-01-10 13:16:25 +01:00
antirez a4f462bebb Free fakeclient argv on AOF error.
We exit later, so no bug fixed, but it is more correct.

See #6054, thanks to @ShooterIT for finding the issue.
2020-01-10 13:16:25 +01:00
antirez d08b8b92fc Git ignore: ignore more files. 2020-01-10 13:16:14 +01:00
Guy Benoish 3913ffd5bc Blocking XREAD[GROUP] should always reply with valid data (or timeout)
This commit solves the following bug:
127.0.0.1:6379> XGROUP CREATE x grp $ MKSTREAM
OK
127.0.0.1:6379> XADD x 666 f v
"666-0"
127.0.0.1:6379> XREADGROUP GROUP grp Alice BLOCK 0 STREAMS x >
1) 1) "x"
   2) 1) 1) "666-0"
         2) 1) "f"
            2) "v"
127.0.0.1:6379> XADD x 667 f v
"667-0"
127.0.0.1:6379> XDEL x 667
(integer) 1
127.0.0.1:6379> XREADGROUP GROUP grp Alice BLOCK 0 STREAMS x >
1) 1) "x"
   2) (empty array)

The root cause is that we use s->last_id in streamCompareID
while we should use the last *valid* ID
2020-01-10 13:16:14 +01:00
John Sully 2539a8a3ce Add support for incremental build with header files 2020-01-10 13:16:14 +01:00
WuYunlong 7030e66807 Fix petential cluster link error.
Funcion adjustOpenFilesLimit() has an implicit parameter, which is server.maxclients.
This function aims to ajust maximum file descriptor number according to server.maxclients
by best effort, which is "bestlimit" could be lower than "maxfiles" but greater than "oldlimit".
When we try to increase "maxclients" using CONFIG SET command, we could increase maximum
file descriptor number to a bigger value without calling aeResizeSetSize the same time.
When later more and more clients connect to server, the allocated fd could be bigger and bigger,
and eventually exceeds events size of aeEventLoop.events. When new nodes joins the cluster,
new link is created, together with new fd, but when calling aeCreateFileEvent, we did not
check the return value. In this case, we have a non-null "link" but the associated fd is not
registered.

So when we dynamically set "maxclients" we could reach an inconsistency between maximum file
descriptor number of the process and server.maxclients. And later could cause cluster link and link
fd inconsistency.

While setting "maxclients" dynamically, we consider it as failed when resulting "maxclients" is not
the same as expected. We try to restore back the maximum file descriptor number when we failed to set
"maxclients" to the specified value, so that server.maxclients could act as a guard as before.
2020-01-10 13:16:14 +01:00
Yossi Gottlieb 3f8a690161 Add REDISMODULE_CTX_FLAGS_MULTI_DIRTY. 2020-01-10 13:16:03 +01:00
hwware 86fd8f0e3f typo fix in acl.c 2020-01-10 13:16:03 +01:00
Itamar Haber d6a6b6f40c Adjusts 'io_threads_num' max to 128
Instead of 512, use the defined max from networking.c
2020-01-10 13:16:03 +01:00
antirez 4a63d5d881 XCLAIM: Create the consumer only on successful claims.
Fixes #6744.
2020-01-08 12:31:39 +01:00
yz1509 28622cc532 avoid sentinel changes promoted_slave to be its own replica. 2020-01-08 12:31:25 +01:00
John Sully 174a8b886d pro launch should respect KEYDB_PRO_DIRECTORY
Former-commit-id: d5f8df5997
2020-01-06 14:24:37 -05:00
John Sully 4a6748d29f Merge branch 'unstable' of https://github.com/JohnSully/KeyDB into unstable
Former-commit-id: dd70f5efd7
2020-01-06 12:04:00 -05:00