VivekSainiEQ
dc8d9feae8
Updated module tests to default to multithreaded and added tests for RM_CreateTimer while loading .rdb
...
Former-commit-id: e6091a2b7e
2021-03-04 23:33:01 +00:00
John Sully
e55ca3603c
Fix memory leak in mvccRestore
...
Former-commit-id: 165333b0fc
2021-02-07 23:38:49 +00:00
John Sully
26898b43a1
Module test reliability
...
Former-commit-id: cc827e157a
2021-02-01 22:21:49 +00:00
John Sully
23495c22a5
Simplify the handling of CreateTimer
...
Former-commit-id: 7b4e25008a
2021-02-01 15:51:22 -05:00
VivekSainiEQ
55659b1569
Modified RM_CreateTimer to prevent more that one function being posted at a time
...
Former-commit-id: f66e5a9c3d
2021-02-01 15:51:22 -05:00
VivekSainiEQ
ad11549020
Changed RM_CreateTimer to only call aePostFunction is existing aePostFunction isn't in flight
...
Former-commit-id: 9954f5b4a4
2021-02-01 15:51:22 -05:00
VivekSainiEQ
73e8825266
Now post entire timer installation process as one function to make atomic with respect to global locks
...
Former-commit-id: 53936661c8
2021-02-01 15:51:22 -05:00
VivekSainiEQ
e3eec7e37c
Updated header file to remove fSynchronous flag
...
Former-commit-id: e2552ff8a9
2021-02-01 15:51:22 -05:00
VivekSainiEQ
eb83f3d47b
Removed more uses of fSynchronous and the use of condition variable and mutex on the control struct.
...
Former-commit-id: 6ab08cc3e1
2021-02-01 15:51:22 -05:00
VivekSainiEQ
363293ef61
Added fix for scenario where module thread waiting for s_mutexModule in acquireGIL can deadlock with module thread waiting for s_mutex in releaseGIL
...
Former-commit-id: 3205373bb3
2021-02-01 15:51:22 -05:00
VivekSainiEQ
cba4dcffdf
removed synchronous calls to aePostFunction and changed scope of g_fModuleThread in order to prevent module related deadlocks, issue #214
...
Former-commit-id: 3b8d1f7076
2021-02-01 15:51:22 -05:00
John Sully
8da77700dd
ARM build fix
...
Former-commit-id: 5832c25ad1
2021-01-31 21:22:23 +00:00
John Sully
79ad42a836
Fix test failure caused by allowing pings during load
...
Former-commit-id: 569a3d9ff8
2021-01-31 07:15:55 +00:00
John Sully
64489534ba
Reduce intermittent failures by giving tests more time
...
Former-commit-id: 69bc7108bd
2021-01-31 06:33:13 +00:00
christianEQ
e1f8a71bd8
added exception to allow pings during loading
...
Former-commit-id: 8a557e9d71
2021-01-31 00:12:49 -05:00
christianEQ
406265263b
added severity levels for afterErrorReply
...
Former-commit-id: fe0f071993
2021-01-31 00:12:49 -05:00
John Sully
d527bddb70
Improve multithreaded test reliability
...
Former-commit-id: effa53339c
2021-01-31 04:33:27 +00:00
John Sully
c86f8030cd
Fix test failure due to bad merge
...
Former-commit-id: f6fb0e4620
2021-01-31 03:40:57 +00:00
John Sully
79eaf32733
Fix CI failure due to missing package
...
Former-commit-id: cf46a014c1
2021-01-31 02:36:30 +00:00
John Sully
78b87d4ed1
Fix crash on shutdown command
...
Former-commit-id: d72b5fa16d
2021-01-31 02:30:28 +00:00
christianEQ
7ad562c41a
Merge pull request #284 from christianEQ/redismerge_2021-01-20
...
Merge Redis 6.0.10 into KeyDB
Former-commit-id: 0151507cef
2021-01-29 10:59:36 -05:00
christianEQ
011b69e9a6
killMainThread -> killServerThreads
...
Former-commit-id: 0fea781f8f
2021-01-28 23:57:19 +00:00
christianEQ
67d6665795
compare_exchange in connSocketRead, explicitly enforce memory order (even if redundant)
...
Former-commit-id: 3c4cadc020
2021-01-28 23:17:48 +00:00
christianEQ
da274b9c14
fixed replicaof no one config, added test case
...
Former-commit-id: e2615ccf88
2021-01-28 19:49:22 +00:00
christianEQ
423ac80ccd
updated version num to 255.255.255
...
Former-commit-id: 595deb0e13
2021-01-28 16:54:22 +00:00
christianEQ
e6aff64c71
Merge remote-tracking branch 'john/unstable' into redismerge_2021-01-20
...
Former-commit-id: 5372d1aab2
2021-01-27 22:25:14 +00:00
christianEQ
5288425723
arm locker before checking zmalloc_used_memory
...
Former-commit-id: 52eca14ca6
2021-01-27 22:24:06 +00:00
Daniel Dai
d69de1c689
Fix Swapdb crash
...
Former-commit-id: 1155f5ac63
2021-01-27 15:24:10 -05:00
christianEQ
295106c2b2
fixed uninitialized variables in ACLSetUserCommandBit
...
Former-commit-id: 7319953ae3
2021-01-26 23:29:15 +00:00
christianEQ
13dfc4f228
fixed strncpy off-by-one errors
...
Former-commit-id: b8e106a72e
2021-01-26 23:27:28 +00:00
christianEQ
8f132802d8
removed unimplemented killIOThreads function declaration
...
Former-commit-id: f30f8eba2f
2021-01-26 22:27:22 +00:00
christianEQ
396f8316e8
fixed server.cpp mentions
...
Former-commit-id: 7ed2296fc5
2021-01-26 22:22:19 +00:00
christianEQ
e73af5617c
added note about io-threads to keydb.conf
...
Former-commit-id: 0691a46669
2021-01-26 22:10:53 +00:00
christianEQ
be2991db56
fixed race condition in connSocketWrite
...
Former-commit-id: d7f01c1f7d
2021-01-26 22:08:07 +00:00
christianEQ
48fdfe7d8f
Removed Redis-specific things from conf file
...
Former-commit-id: 4d71929c60
2021-01-26 21:50:45 +00:00
christianEQ
358debebfa
Merge tag 'tags/6.0.10' into redismerge_2021-01-20
...
Former-commit-id: dadce055f8
2021-01-26 21:43:09 +00:00
christianEQ
247c916f69
changed loading process config types to be consistent across environments
...
Former-commit-id: d2867580ab
2021-01-14 21:12:36 -05:00
christianEQ
588a37583e
renamed loaded key counter to be more clear
...
Former-commit-id: 8dc238efae
2021-01-14 13:06:57 -05:00
christianEQ
b113977e94
removed 'comment arguments' from config options (doesn't ignore inline comments)
...
Former-commit-id: 7cd4b5e11c
2021-01-14 13:06:57 -05:00
christianEQ
6f97805577
fixed signedness warning
...
Former-commit-id: 00043f9509
2021-01-14 13:06:57 -05:00
christianEQ
e68cee23a1
added section to keydb.conf for new options, tweaked default
...
Former-commit-id: 9b81f3f263
2021-01-14 13:06:57 -05:00
christianEQ
d4ad045535
ping replicas during key load
...
Former-commit-id: 2747d1a1a9
2021-01-14 13:06:57 -05:00
christianEQ
81536a31c8
added config option for loading callback interval keys
...
Former-commit-id: 9f7ed0b232
2021-01-14 13:06:57 -05:00
christianEQ
4fa25cbc57
configurized loading_process_events_interval_bytes
...
Former-commit-id: c176ea7366
2021-01-14 13:06:57 -05:00
Oran Agra
8d70d498d5
Redis 6.0.10
2021-01-12 16:25:37 +02:00
Oran Agra
5745b469d3
Improve stability of new CSC eviction test ( #8160 )
...
c4fdf09c0 added a test that now fails with valgrind
it fails for two resons:
1) the test samples the used memory and then limits the maxmemory to
that value, but it turns out this is not atomic and on slow machines
the background cron process that clean out old query buffers reduces
the memory so that the setting doesn't cause eviction.
2) the dbsize was tested late, after reading some invalidation messages
by that time more and more keys got evicted, partially draining the
db. this is not the focus of this fix (still a known limitation)
(cherry picked from commit a102b21d17 )
2021-01-12 16:25:37 +02:00
Oran Agra
a11c842ecd
fix race in cluster transactions test ( #8312 )
...
we didn't wait for the commands executed on the master to reach the replica.
(cherry picked from commit 4f8458d8d6 )
2021-01-12 16:25:37 +02:00
Oran Agra
615eb0db86
Fix cluster diskless load swapdb test ( #8308 )
...
The test was trying to wait for the replica to start loading the rdb
from the master before it kills the master, but it was actually waiting
for ROLE to be in "sync" mode, which corresponds to REPL_STATE_TRANSFER
that starts before the actual loading starts.
now instead it waits for the loading flag to be set.
Besides, the test was dependent on the previous configuration of the
servers, relying on the fact the replica is configured to persist
(either RDB of AOF), now it is set explicitly.
(cherry picked from commit 264953871b )
2021-01-12 16:25:37 +02:00
Bob Li
203feb6ea2
Fix overflow of rdbWriteRaw return value ( #8306 )
...
Saving string of more than 2GB to the RDB file, can result in corrupt RDB, or failure in rdbSave.
S
(cherry picked from commit 542455ce2a )
2021-01-12 16:25:37 +02:00
guybe7
08c3f0bca6
Modules: Fix an integer sign bug in moduleTimerHandler ( #8131 )
...
bug was introduced in 1a91a2700b
(cherry picked from commit 2f41a38568 )
2021-01-12 16:25:37 +02:00