Commit Graph
10498 Commits
Author SHA1 Message Date
antirez dec2345007 Test: fix slowlog test false positive.
In fast systems "SLOWLOG RESET" is fast enough to don't be logged even
when the time limit is "1" sometimes. Leading to false positives such
as:

[err]: SLOWLOG - can be disabled in tests/unit/slowlog.tcl
Expected '1' to be equal to '0'


Former-commit-id: 8198a697fd
2019-07-18 23:12:52 -04:00
antirez a9dbdb3348 Make comment in getClientOutputBufferMemoryUsage() describing the present.
Former-commit-id: 35acae360a
2019-07-18 23:12:39 -04:00
antirez b70266f3d3 Fix test false positive introduced by threaded I/O.
Now clients that are ready to be terminated asynchronously are processed
more often in beforeSleep() instead of being processed in serverCron().
This means that the test will not be able to catch the moment the client
was terminated, also note that the 'omem' figure now changes in big
steps, because of the new client output buffers layout.

So we have to change the test range in order to accomodate for that.
Yet the test is useful enough to be worth taking, even if its precision
is reduced by this commit. Probably if we get more problems, a thing
that makes sense is just to check that the limit is < 200k. That's more
than enough actually.


Former-commit-id: 8aaa8b0b11
2019-07-18 23:12:05 -04:00
John Sully 47e7652611 Active Replicas should always use their own slaveseldb variable when sending/saving rdbs - never those of their masters. This is because the Active Replica is also simultaneously a master
Former-commit-id: bb090b6d20
2019-07-18 20:50:20 -04:00
John Sully 727bda7108 remove unnecessary variables
Former-commit-id: a9c4e3970f
2019-07-18 19:37:49 -04:00
John Sully 2110b84f7e Fix issue #59 - Test replicaof config variable
Former-commit-id: d5ecc2347a
2019-07-18 19:22:49 -04:00
John Sully 7ba2941735 Add support for sanitizers and fix issues they have found
Former-commit-id: 58971a430d
2019-07-18 18:39:42 -04:00
John Sully e41ab66722 Resolve race on neterr variable
Former-commit-id: 1512274f4c
2019-07-18 17:11:28 -04:00
John Sully aa560582b4 Make object refcounts atomic, technically it doesn't need to be currently but the semantics are complicated and error prone. This is much safer with little performance impact
Former-commit-id: e310d33c12
2019-07-18 15:49:12 -04:00
John Sully afa1a2e023 Suppress initialized data sanitizer warnings
Former-commit-id: ad32ba0343
2019-07-18 15:49:03 -04:00
John Sully 452ace5b95 Another RESP3 regression
Former-commit-id: 4e30a5b4e5
2019-07-17 22:57:52 -04:00
John Sully cb58295ade Fix Issue #58
Former-commit-id: c8516f3dc4
2019-07-17 02:34:02 -04:00
John Sully bc0c9054b2 Shared objects should be marked as such
Former-commit-id: aae0fdc114
2019-07-16 18:32:01 -04:00
John Sully 79731e805a Crash when aborting SYNC with a master on a thread other than main
Former-commit-id: a19d0f67b9
2019-07-15 14:55:41 -04:00
John Sully bdc901f01c Implement test mode to make finding bugs easier
Former-commit-id: 971f69fe1f
2019-07-15 14:55:18 -04:00
John Sully a9500e5483 Blocked clients can stall when under low load
Former-commit-id: 7468c691ad
2019-07-13 16:44:11 -04:00
John Sully 0dd9a27420 Give the active-rep more time to sync for test reliability
Former-commit-id: 620c2ec141
2019-07-12 23:52:07 -04:00
John Sully e78ed8cc64 Fix more locking deadlocks
Former-commit-id: 3081b6f98b
2019-07-12 23:51:45 -04:00
John Sully 8f1e7d9d5b Fix deadlock with client and ae locks
Former-commit-id: 8630339e43
2019-07-12 20:46:50 -04:00
John Sully 03d41318b0 Add Active Replication tests
Former-commit-id: 528d10091f
2019-07-12 03:54:41 -04:00
John Sully 42143ac654 FIX: The dabase count configuration is not respected
Former-commit-id: 149c3cf3dd
2019-07-12 02:13:37 -04:00
John Sully 9dbcfc9d24 Update README.md
Former-commit-id: f12c3cf9dd
2019-07-11 20:29:47 -04:00
John Sully 2a1d7890f6 Fix compile errors on GCC v5
Former-commit-id: 1f08a0efb3
2019-07-11 20:20:01 -04:00
John Sully 3498002d9e Fix more accounting errors with active replication and the replication offset. Specifically we don't update repl_ack_off as frequently as we do reploff_skipped
Former-commit-id: 6cf85d1d01
2019-07-11 19:20:12 -04:00
John Sully 0db39bcf9d Active Replicas are not slaves
Former-commit-id: b5101a460d
2019-07-11 18:51:20 -04:00
John Sully 361b7655ef Fix active replication offset synchronization accounting, and enable the wait command
Former-commit-id: a5784ef09e
2019-07-11 17:00:23 -04:00
John Sully 87d57aa265 lazyfree needs to consume more memory to be detectable
Former-commit-id: 122ec25bf0
2019-07-06 00:53:40 -04:00
John Sully 37090db182 Redis only does this in beforeSleep function - doing extra calls like we do causes test issues
Former-commit-id: d013ad9eba
2019-07-06 00:53:20 -04:00
John Sully a43a383361 Add back user space buffering of RDB save
Former-commit-id: d918ca6fa5
2019-07-06 00:36:23 -04:00
John Sully a686622540 We can use less memory in the client output buffers. Its OK
Former-commit-id: 852819180f
2019-07-05 23:43:01 -04:00
John Sully 5167e0399a Fix additional warning related to new() overloads
Former-commit-id: 218111eb72
2019-07-05 23:42:39 -04:00
John Sully 5aaa95ec11 Fix additional warnings
Former-commit-id: 1531cfb7ee
2019-06-27 16:29:36 -04:00
John Sully 15d37f3d65 Fix mac build breaks
Former-commit-id: 16a89f21dc
2019-06-27 15:04:09 -04:00
John Sully 9252500928 Fix libcxxabi clang compile failure in travis, as well as bool issue due to old clang
Former-commit-id: 79e5160e37
2019-06-18 00:42:01 -04:00
John Sully 64850f4d93 Bump travis compiler version
Former-commit-id: 510e966dc0
2019-06-18 00:42:01 -04:00
John Sully a9837e9d95 Fix Travis CI issue
Former-commit-id: 8238d3207e
2019-06-17 23:56:23 -04:00
John Sully fb1b845fe5 Fix issues with relaxed memory model architectures
Former-commit-id: e37bc4ad40
2019-06-17 23:00:12 -04:00
John Sully 2a02779293 Remove unnecessary recursive lock
Former-commit-id: 0f78b8b917
2019-06-17 23:00:12 -04:00
John Sully 5d07bb92ce missing file :)
Former-commit-id: 19061fe04f
2019-06-17 23:00:12 -04:00
John Sully 871c86717c Fix test failures due to assert
Former-commit-id: 9c901eb65f
2019-06-17 23:00:12 -04:00
John Sully 9ca83cc9fd convert the pending write list to a vector for better performance and less cache thrashing
Former-commit-id: ae33ff3a6e
2019-06-17 23:00:12 -04:00
John Sully 913fe8eb78 Move more code out of the GIL
Former-commit-id: 59dbd625c1
2019-06-17 23:00:12 -04:00
John Sully 89a44bd7e5 Remove an unnecessary lock that eats performance
Former-commit-id: 8eb4e355b9
2019-06-17 23:00:12 -04:00
John Sully 0cd9bc48fc Even the next up thread should sleep in the futex
Former-commit-id: 8b76b01bfe
2019-06-17 23:00:12 -04:00
John Sully 5573f021c5 Fallback to a futex if we spin for a long time
Former-commit-id: ec57b4b024
2019-06-17 23:00:12 -04:00
John Sully c64b6127ea Enable load balancing of UNIX sockets across threads
Former-commit-id: 46d6caa47c
2019-06-11 01:34:36 -04:00
John Sully 88b5a4e25f Fix crash adding duplicate replica. Just send an error instead
Former-commit-id: 97b65ce19c
2019-06-02 15:50:50 -04:00
John Sully 8c6075b21e Merge branch 'unstable' of https://github.com/JohnSully/redis2 into unstable
Former-commit-id: 55d0ef40b0
2019-06-01 03:23:21 -04:00
John Sully 20d8346846 Implement MOTD feature in keydb-cli
Former-commit-id: a6c56416fc
2019-05-21 15:12:12 -04:00
John Sully 55cac6609b Update README.md
Former-commit-id: cd3c482d5e
2019-05-21 00:04:12 -04:00