summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix the propagate Tcl test after module changes.fix-double-multiantirez2020-03-311-1/+1
|
* Modify the propagate unit test to show more cases.antirez2020-03-311-2/+30
|
* Fix module commands propagation double MULTI bug.antirez2020-03-314-8/+25
| | | | | | | | | 37a10cef introduced automatic wrapping of MULTI/EXEC for the alsoPropagate API. However this collides with the built-in mechanism already present in module.c. To avoid complex changes near Redis 6 GA this commit introduces the ability to exclude call() MUTLI/EXEC wrapping for also propagate in order to continue to use the old code paths in module.c.
* Fix RM_Call() stale comment due to cut&paste.antirez2020-03-311-3/+1
|
* Merge branch 'unstable' of github.com:/antirez/redis into unstableantirez2020-03-302-6/+11
|\
| * Merge pull request #7033 from OMG-By/unstableSalvatore Sanfilippo2020-03-291-1/+1
| |\ | | | | | | fix: dict.c->dictResize()->minimal type
| | * fix: dict.c->dictResize()->minimal typeOMG-By2020-03-291-1/+1
| | |
| * | Merge pull request #7032 from soloestoy/psync2-meaningful-offset-bugfixSalvatore Sanfilippo2020-03-281-5/+10
| |\ \ | | | | | | | | PSYNC2: reset backlog_idx and master_repl_offset correctly
| | * | PSYNC2: reset backlog_idx and master_repl_offset correctlyzhaozhao.zz2020-03-281-5/+10
| |/ /
* | | Precise timeouts: reference client pointer directly.precise-timeout-2antirez2020-03-301-16/+13
| | |
* | | timeout.c created: move client timeouts code there.antirez2020-03-275-167/+198
| | |
* | | Precise timeouts: cleaup the table on unblock.antirez2020-03-273-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | Now that this mechanism is the sole one used for blocked clients timeouts, it is more wise to cleanup the table when the client unblocks for any reason. We use a flag: CLIENT_IN_TO_TABLE, in order to avoid a radix tree lookup when the client was already removed from the table because we processed it by scanning the radix tree.
* | | Precise timeouts: fix comments after functional change.antirez2020-03-272-6/+6
| | |
* | | Precise timeouts: use only radix tree for timeouts.antirez2020-03-273-38/+15
| | |
* | | Precise timeouts: fast exit for clientsHandleShortTimeout().antirez2020-03-271-0/+1
| | |
* | | Precise timeouts: fix bugs in initial implementation.antirez2020-03-272-1/+5
| | |
* | | Precise timeouts: working initial implementation.antirez2020-03-273-28/+110
| | |
* | | Precise timeouts: refactor unblocking on timeout.antirez2020-03-272-13/+33
|/ /
* | PSYNC2: fix backlog_idx when adjusting for meaningful offsetantirez2020-03-271-0/+3
| | | | | | | | See #7002.
* | Merge pull request #6644 from oranagra/stream_aofrwSalvatore Sanfilippo2020-03-262-1/+15
|\ \ | | | | | | AOFRW on an empty stream created with MKSTREAM loads badkly
| * | AOFRW on an empty stream created with MKSTREAM loads badklyOran Agra2020-03-252-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | the AOF will be loaded successfully, but the stream will be missing, i.e inconsistencies with the original db. this was because XADD with id of 0-0 would error. add a test to reproduce.
* | | PSYNC2: meaningful offset test.meaningful-offsetantirez2020-03-252-0/+62
| | |
* | | PSYNC2: meaningful offset implemented.antirez2020-03-253-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A very commonly signaled operational problem with Redis master-replicas sets is that, once the master becomes unavailable for some reason, especially because of network problems, many times it wont be able to perform a partial resynchronization with the new master, once it rejoins the partition, for the following reason: 1. The master becomes isolated, however it keeps sending PINGs to the replicas. Such PINGs will never be received since the link connection is actually already severed. 2. On the other side, one of the replicas will turn into the new master, setting its secondary replication ID offset to the one of the last command received from the old master: this offset will not include the PINGs sent by the master once the link was already disconnected. 3. When the master rejoins the partion and is turned into a replica, its offset will be too advanced because of the PINGs, so a PSYNC will fail, and a full synchronization will be required. Related to issue #7002 and other discussion we had in the past around this problem.
* | | Explain why we allow transactions in -BUSY state.antirez2020-03-251-2/+9
| | | | | | | | | | | | Related to #7022.
* | | Merge pull request #7022 from oranagra/multi-busy-scriptSalvatore Sanfilippo2020-03-252-0/+73
|\ \ \ | | | | | | | | MULTI/EXEC during LUA script timeout are messed up
| * | | MULTI/EXEC during LUA script timeout are messed upOran Agra2020-03-232-0/+73
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Redis refusing to run MULTI or EXEC during script timeout may cause partial transactions to run. 1) if the client sends MULTI+commands+EXEC in pipeline without waiting for response, but these arrive to the shards partially while there's a busy script, and partially after it eventually finishes: we'll end up running only part of the transaction (since multi was ignored, and exec would fail). 2) similar to the above if EXEC arrives during busy script, it'll be ignored and the client state remains in a transaction. the 3rd test which i added for a case where MULTI and EXEC are ok, and only the body arrives during busy script was already handled correctly since processCommand calls flagTransaction
* | | Improve comments of replicationCacheMasterUsingMyself().antirez2020-03-231-1/+6
| | |
* | | Fix BITFIELD_RO test.antirez2020-03-232-5/+5
| | |
* | | Abort transactions after -READONLY error. Fix #7014.antirez2020-03-231-0/+1
| | |
* | | Minor changes to BITFIELD_RO PR #6951.antirez2020-03-231-6/+9
| | |
* | | Merge pull request #6951 from yangbodong22011/feature-bitfield-roSalvatore Sanfilippo2020-03-234-1/+54
|\ \ \ | | | | | | | | Added BITFIELD_RO variants for read-only operations.
| * | | Added BITFIELD_RO variants for read-only operations.bodong.ybd2020-03-044-1/+54
| | | |
* | | | Modules: updated function doc after #7003.antirez2020-03-231-1/+6
| | | |
* | | | Merge pull request #7003 from guybe7/rm_context_flags_handle_nullSalvatore Sanfilippo2020-03-231-14/+16
|\ \ \ \ | | | | | | | | | | Allow RM_GetContextFlags to work with ctx==NULL
| * | | | Allow RM_GetContextFlags to work with ctx==NULLGuy Benoish2020-03-181-14/+16
| |/ / /
* | | | Merge pull request #7005 from hwware/memoryleakfix-redis-cliSalvatore Sanfilippo2020-03-231-0/+2
|\ \ \ \ | | | | | | | | | | fix potential memory leak in redis-cli lua debug mode
| * | | | fix potentical memory leak in redis-clihwware2020-03-181-0/+2
| | | | |
* | | | | Merge pull request #7018 from yossigo/fix-accept-issuesSalvatore Sanfilippo2020-03-235-40/+58
|\ \ \ \ \ | | | | | | | | | | | | Fix issues with failed/rejected accepts.
| * | | | | Fix crashes related to failed/rejected accepts.Yossi Gottlieb2020-03-221-5/+6
| | | | | |
| * | | | | Cluster: fix misleading accept errors.Yossi Gottlieb2020-03-221-3/+4
| | | | | |
| * | | | | Conns: Fix connClose() / connAccept() behavior.Yossi Gottlieb2020-03-223-32/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We assume accept handlers may choose to reject a connection and close it, but connAccept() callers can't distinguish between this state and other error states requiring connClose(). This makes it safe (and mandatory!) to always call connClose() if connAccept() fails, and safe for accept handlers to close connections (which will defer).
* | | | | | Merge pull request #7019 from hwware/cscfixSalvatore Sanfilippo2020-03-231-2/+2
|\ \ \ \ \ \ | |/ / / / / |/| | | | | Fix Bug for Client Side Caching: Unexpected Behaviour when Switching between OPTIN/OPTOUT Mode
| * | | | | remove redundant Semicolonhwware2020-03-231-1/+1
| | | | | |
| * | | | | clean CLIENT_TRACKING_CACHING flag when disabled cachinghwware2020-03-231-1/+1
| | |_|/ / | |/| | |
* | | | | Merge pull request #7013 from hwware/clusterhelpfixSalvatore Sanfilippo2020-03-201-1/+2
|\ \ \ \ \ | | | | | | | | | | | | add missing commands description in cluster help
| * | | | | add missing commands in cluster helphwware2020-03-201-1/+2
| |/ / / /
* | | | | Merge branch 'unstable' of github.com:/antirez/redis into unstableantirez2020-03-206-4/+102
|\ \ \ \ \ | |/ / / /
| * | | | Merge pull request #6996 from artix75/redis_cli_proxy_infoSalvatore Sanfilippo2020-03-181-1/+5
| |\ \ \ \ | | | | | | | | | | | | Support Redis Cluster Proxy PROXY INFO command
| | * | | | Support Redis Cluster Proxy PROXY INFO commandartix2020-03-161-1/+5
| | | | | |
| * | | | | Merge pull request #7000 from ppillip/patch-1Salvatore Sanfilippo2020-03-181-1/+1
| |\ \ \ \ \ | | | | | | | | | | | | | | Update redis.conf