John Sully
d7fa406a0e
Fix client tracking, also ensure tracking tests are enabled
...
Former-commit-id: 1938af27f5
2020-05-26 01:28:52 -04:00
John Sully
c15802af8b
Fix issue #170 . Intermittent crash destroying fastlock due to implicit type conversion in assert
...
Former-commit-id: ecbe168b54
2020-05-25 02:13:57 -04:00
John Sully
fa671d5193
Fix infinite logs of Error in rreplay
...
Former-commit-id: 00cef78858
2020-05-24 20:05:22 -04:00
John Sully
fcfff165da
Enable TLS connections
...
Former-commit-id: d05da0fabd
2020-05-24 19:57:16 -04:00
John Sully
0a1d2c99ac
don't keep feeding data to clients pending close
...
Former-commit-id: 4db3f2a443
2020-05-24 12:46:11 -04:00
John Sully
975ca828d4
Quiet TSAN during exit
...
Former-commit-id: fd710d590a
2020-05-24 12:45:10 -04:00
John Sully
70f3eab882
Install deps for daily workflow
...
Former-commit-id: 9b98c9edd3
2020-05-24 11:19:53 -04:00
John Sully
23e1601276
Hold the AE lock until we process the repl backlog after a command
...
Former-commit-id: 4893eedacb
2020-05-24 11:19:23 -04:00
John Sully
b892d3deff
Add standardized way to post client dependent functions
...
Former-commit-id: fb50163b47
2020-05-24 02:46:39 -04:00
John Sully
f517eaf182
remove unnecessary cplusplus guard
...
Former-commit-id: 3b8463f9d2
2020-05-24 02:45:55 -04:00
John Sully
78b647bd6f
race in connection state when setting a handler on a different thread
...
Former-commit-id: 42c7677690
2020-05-24 02:45:11 -04:00
John Sully
dc27b95a47
Fix ASAN races
...
Former-commit-id: 8665f25031
2020-05-24 01:58:33 -04:00
John Sully
cc080de221
Incorrect locking in replication error paths
...
Former-commit-id: 1c6b573147
2020-05-24 01:57:49 -04:00
John Sully
51976e2be8
Incorrect memory order on weak ordered architectures
...
Former-commit-id: 90162da1a6
2020-05-24 01:57:18 -04:00
John Sully
926da1f899
If we request shutdown from a client on a different thread than a blocking lua script we fail to actually shutdown until the script completes
...
Former-commit-id: 1ca6c1dd56
2020-05-24 01:56:23 -04:00
John Sully
de376acb15
race calculating client overhead
...
Former-commit-id: 2d27c8ecdb
2020-05-24 01:53:43 -04:00
John Sully
18b8a83ecb
During RDB load we can only handle clients on the main thread as our workers are not yet created. This change also unifies the accept logic across the socket types
...
Former-commit-id: 59cda9cfb9
2020-05-23 16:03:24 -04:00
John Sully
5d9afccfdd
Diskless replication handler needs to run on the main thread
...
Former-commit-id: 091af64003
2020-05-23 15:15:42 -04:00
ShooterIT
23b4dc503a
Fix reply bytes calculation error
...
Fix #7275 .
Former-commit-id: a12210c875
2020-05-23 13:02:55 -04:00
John Sully
db7f0572a3
Merge tag '6.0.3' into unstable
...
Redis 6.0.3
Former-commit-id: 43649fc5b4
2020-05-22 16:53:10 -04:00
John Sully
7e53a312ce
Merge branch 'unstable' of https://github.com/JohnSully/KeyDB into unstable
...
Former-commit-id: 01cc25653a
2020-05-22 16:45:27 -04:00
John Sully
2d783a3cbf
Merge tag '6.0.2' into unstable
...
Redis 6.0.2
Former-commit-id: a010e4a4b2
2020-05-22 16:45:18 -04:00
John Sully
67b7d512cb
Merge commit 'cb683a84f7a9d530bec629f2b656e7d0842a0f75' into unstable
...
Former-commit-id: 817a11ff11
2020-05-22 15:56:35 -04:00
John Sully
df7ac419d0
Merge commit '3a441c7d95c8757d2ab12ff730cc7ca8899538c9' into unstable
...
Former-commit-id: c52e1fc78c
2020-05-22 15:42:50 -04:00
John Sully
1eeb5de69f
Merge commit 'c57d9146f41f4b661d9d2cb48b83b3abc757ba0e' into unstable
...
Former-commit-id: d74871da40
2020-05-22 15:36:44 -04:00
John Sully
bc1f7d6d45
Update README.md
...
Former-commit-id: a25cf15ecd
2020-05-22 14:03:29 -04:00
John Sully
8f8dea57db
Merge tag '6.0.1' into unstable
...
Redis 6.0.1.
Former-commit-id: c505df8830
2020-05-21 23:41:36 -04:00
John Sully
08a2facf13
Missing noexcept
...
Former-commit-id: f214ada545
2020-05-21 23:25:50 -04:00
John Sully
8a14bb4b10
build failure on macos
...
Former-commit-id: c10aa3b8b0
2020-05-21 23:24:34 -04:00
John Sully
27eb239f1a
Fix bad merge in CI.yml
...
Former-commit-id: 6311d709c3
2020-05-21 22:09:06 -04:00
John Sully
ad1eac9856
Merge commit 'bec68bff2978de88b23140f41b6a943162333b11' into unstable
...
Former-commit-id: 8ab77465db
2020-05-21 19:37:42 -04:00
John Sully
48058188a8
Merge commit '414debfd04d21c0b19d5f6bb5249398d83670f3d' into unstable
...
Former-commit-id: 201bf73ef7
2020-05-21 18:57:28 -04:00
John Sully
3384af024d
Merge commit 'cbcd07777dc569618a34f59e5fd0de53178f4f1d' into unstable
...
Former-commit-id: 49784c8122
2020-05-21 18:48:49 -04:00
John Sully
3324d4dc0f
Merge commit '5719b3054a534e62c25ae97680ecd4f7238ba484' into unstable
...
Former-commit-id: 3e03f308b5
2020-05-21 17:55:09 -04:00
John Sully
b6500a08dc
Merge commit '026cc11b056f063631d990f1a9db45b4e583974e' into unstable
...
Former-commit-id: 95cecb0229
2020-05-21 17:45:15 -04:00
John Sully
c4db71f971
Merge commit '024c380b9da02bc4112822c0f5f9ac1388b4205b' into unstable
...
Former-commit-id: 7676f5b15f
2020-05-21 17:36:53 -04:00
John Sully
24322b9b6d
Merge commit 'eba28e2cea0b2632cf751426ada02adf24f273db' into unstable
...
Former-commit-id: d5b057534a
2020-05-21 17:32:53 -04:00
John Sully
ba7483c20b
Merge commit 'c35a53169ffdbdf73f91224b6e62f6129fb9a838' into unstable
...
Former-commit-id: 7a15f6dfc7
2020-05-21 17:30:56 -04:00
John Sully
50fb85a489
Override missing new, fix new/delete mismatch
...
Former-commit-id: 712d825c23
2020-05-20 15:57:08 -04:00
antirez
7803b1148d
Redis 6.0.3.
2020-05-16 18:11:58 +02:00
antirez
1eab62f7e5
Remove the client from CLOSE_ASAP list before caching the master.
...
This was broken in 1a7cd2c : we identified a crash in the CI, what
was happening before the fix should be like that:
1. The client gets in the async free list.
2. However freeClient() gets called again against the same client
which is a master.
3. The client arrived in freeClient() with the CLOSE_ASAP flag set.
4. The master gets cached, but NOT removed from the CLOSE_ASAP linked
list.
5. The master client that was cached was immediately removed since it
was still in the list.
6. Redis accessed a freed cached master.
This is how the crash looked like:
=== REDIS BUG REPORT START: Cut & paste starting from here ===
1092:S 16 May 2020 11:44:09.731 # Redis 999.999.999 crashed by signal: 11
1092:S 16 May 2020 11:44:09.731 # Crashed running the instruction at: 0x447e18
1092:S 16 May 2020 11:44:09.731 # Accessing address: 0xffffffffffffffff
1092:S 16 May 2020 11:44:09.731 # Failed assertion: (:0)
------ STACK TRACE ------
EIP:
src/redis-server 127.0.0.1:21300(readQueryFromClient+0x48)[0x447e18]
And the 0xffff address access likely comes from accessing an SDS that is
set to NULL (we go -1 offset to read the header).
2020-05-16 18:04:17 +02:00
antirez
ae306a3df6
Redis 6.0.2.
2020-05-15 22:29:52 +02:00
Yossi Gottlieb
16ba33c05b
TLS: Fix test failures on recent Debian/Ubuntu.
...
Seems like on some systems choosing specific TLS v1/v1.1 versions no
longer works as expected. Test is reduced for v1.2 now which is still
good enough to test the mechansim, and matters most anyway.
2020-05-15 22:23:24 +02:00
Yossi Gottlieb
77ae66930c
TLS: Add crypto locks for older OpenSSL support.
...
This is really required only for older OpenSSL versions.
Also, at the moment Redis does not use OpenSSL from multiple threads so
this will only be useful if modules end up doing that.
2020-05-15 22:23:24 +02:00
David Carlier
389697988a
NetBSD build update.
...
This platform supports CPU affinity (but not OpenBSD).
2020-05-15 22:23:24 +02:00
Madelyn Olson
2435341d74
Added a refcount on timer events to prevent deletion of recursive timer calls
2020-05-15 22:23:24 +02:00
antirez
80c906bd30
Cache master without checking of deferred close flags.
...
The context is issue #7205 : since the introduction of threaded I/O we close
clients asynchronously by default from readQueryFromClient(). So we
should no longer prevent the caching of the master client, to later
PSYNC incrementally, if such flags are set. However we also don't want
the master client to be cached with such flags (would be closed
immediately after being restored). And yet we want a way to understand
if a master was closed because of a protocol error, and in that case
prevent the caching.
2020-05-15 22:23:24 +02:00
John Sully
d32cd50f25
Remove debugging logs
...
Former-commit-id: 4073758874
2020-05-14 22:18:29 -04:00
antirez
74249be4a2
Track events processed while blocked globally.
...
Related to #7234 .
2020-05-14 11:29:43 +02:00
antirez
8bf660af90
Some rework of #7234 .
2020-05-14 11:29:43 +02:00