summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* AsyncIO Race Condition Fix (#2639)v4.3.64.3Chayim2023-03-226-8/+64
|
* Version 4.3.5 (#2469)v4.3.5Chayim2022-11-221-1/+1
|
* Cherry-pick for 4.3.5 (#2468)dvora-h2022-11-2135-921/+2461
| | | | | | | | | | | | | | | | | | | | Co-authored-by: pedro.frazao <perl.pf@netcf.org> Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com> Co-authored-by: Gauthier Imbert <gauthier@PC17> Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: szumka <106675199+szumka@users.noreply.github.com> Co-authored-by: Mehdi ABAAKOUK <sileht@sileht.net> Co-authored-by: Tim Gates <tim.gates@iress.com> Co-authored-by: Utkarsh Gupta <utkarshgupta137@gmail.com> Co-authored-by: Nial Daly <34862917+nialdaly@users.noreply.github.com> Co-authored-by: pedrofrazao <603718+pedrofrazao@users.noreply.github.com> Co-authored-by: Антон Безденежных <gamer392@yandex.ru> Co-authored-by: Iglesys <g.imbert34@gmail.com> Co-authored-by: Kristján Valur Jónsson <sweskman@gmail.com> Co-authored-by: DvirDukhan <dvir@redis.com> Co-authored-by: Alibi Shalgymbay <a.shalgymbay@mycar.kz> Co-authored-by: dvora-h <dvora.heller@redis.com> Co-authored-by: Alibi <aliby.bbb@gmail.com> Co-authored-by: Aarni Koskela <akx@iki.fi>
* v4.3.4 (#2255)v4.3.4dvora-h2022-06-271-1/+1
|
* Fix backwards compatibility from 4.3.2 (#2254)dvora-h2022-06-271-1/+0
|
* Fix `XAUTOCLAIM` to return the full response (#2252)dvora-h2022-06-272-3/+4
| | | | | * fix parse_xautoclaim * linters
* Split incorrect mark into two separate marks (#2253)Kristján Valur Jónsson2022-06-271-4/+9
|
* commands/cluster: use pipeline to execute split commands (#2230)Utkarsh Gupta2022-06-275-153/+151
| | | | | | - allow passing target_nodes to pipeline commands - move READ_COMMANDS to commands/cluster to avoid import cycle - add types to list_or_args
* Changed dynamic_startup_nodes default value to 'True' to prevent breaking ↵Bar Shaul2022-06-272-7/+7
| | | | backward compatibility (#2251)
* late eval of the skip condition (#2248)Kristján Valur Jónsson2022-06-274-4/+7
| | | | | | | | | | * late eval of the skip condition at module import time, the REDIS_INFO dict hasn't been initialized. * Store REDIS_INFO in config object, where it is available from condition strings * Fix comparson of time You can't test rounded values for equalness, since they may fall each on a different side of 0.5. It is better to test their absolute difference for a certain tolerance, in this case 1.0 which is the intent of the original round.
* Added dynamic_startup_nodes configuration to RedisCluster. (#2244)Bar Shaul2022-06-234-4/+88
| | | | | | | | | * Added dynamic_startup_nodes configuration to RedisCluster. By default, uses only the initial passed startup nodes to refresh the cluster topology. If set to true, sets the startup nodes to all of the discovered nodes. * Added RedisCluster specific options to the README file and updated CHANGES * Fixed timeout_error_topology_refresh test Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Docs: Add a note about client_setname and client_name difference (#2247)Paweł Srokosz2022-06-231-0/+6
|
* Reuse the old nodes' connections when a cluster topology refresh is being ↵Bar Shaul2022-06-234-14/+75
| | | | | | | | | | | | | done (#2235) * A fix was made to reuse the old nodes' connections when a cluster topology refresh is being done * Fixed RedisCluster to immediately raise AuthenticationError * Updated CHANGES * Fixed cluster async bgsave test to ignore "bgsave already in progress" error * Fixed linters
* DOC add pipeline examples (#2240)Iglesys2022-06-232-1/+310
| | | | | | | * DOC add pipeline examples * Add pipeline notebook to the example.rst file * retrigger checks
* Fix retries in async mode (#2180)Eric Lemoine2022-06-196-9/+83
| | | | | | | | | * Avoid mutating a global retry_on_error list * Make retries config consistent in sync and async * Fix async retries * Add new TestConnectionConstructorWithRetry tests
* async_cluster: fix simultaneous initialize (#2231)Utkarsh Gupta2022-06-192-5/+7
| | | - close startup_nodes too during client.close(), in case they are different
* Correct retention_msecs value (#2232)earthgecko2022-06-191-1/+1
| | | The `retention_msecs` takes a millisecond value not a seconds value, having checked and tested redis/commands/timeseries/commands.py is not adjusting seconds to milliseconds it is passing it through as is, therefore the statement in this doc is incorrect as it creates a time series with a retention period of 5 milliseconds not 5 seconds as stated.
* Uppercase commands in CommandsParser.get_keys (#2236)Falk2022-06-192-2/+3
|
* Fix Lock crash, and versioning 4.3.3 (#2210)v4.3.3dvora-h2022-06-022-2/+1
| | | | | * fix lock * v4.3.3
* async_cluster: improve docs (#2208)Utkarsh Gupta2022-06-022-38/+42
| | | | - move response_callbacks kwarg inside __init__ to hide it from docs - use :member-order: bysource to group similar commands together
* 4.3.2 (#2207)v4.3.2dvora-h2022-06-011-1/+1
|
* SHUTDOWN - add support for the new NOW, FORCE and ABORT modifiers (#2150)dvora-h2022-06-012-6/+51
| | | | | | | | | | | | | | | * add support for NOW, FORCE and ABORT modifiers * linters * test * linters * test params * fix tests Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Made sync lock consistent and added types to it (#2137)Anas2022-06-015-25/+80
| | | | | | | | | * Made sync lock consistent and added types to it * Made linters happy * Fixed cluster client lock signature Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* async_cluster: optimisations (#2205)Utkarsh Gupta2022-06-014-93/+206
| | | | | | | | | | - return true from execute_pipeline if there are any errors - use todo list to speedup retries - store initialisation node in CommandsParser object - add sync context manager for pipeline - use if/else instead of try/except - make command a function argument in _determine_nodes & _determine_slot - add async cluster pipeline benchmark script
* Add `query_params` to FT.PROFILE (#2198)dvora-h2022-06-012-11/+43
| | | | | | | * ft.profile query_params * fix pr comments * type hints
* Improve Readability (#2206)Ryan Russell2022-06-011-2/+2
| | | Signed-off-by: Ryan Russell <git@ryanrussell.org>
* Fix tests for Redis 7 (#2182)dvora-h2022-05-319-74/+93
| | | | | * fix tests * async
* Add default None for maxlen at xtrim command (#2188)mfgnik2022-05-311-1/+4
| | | | | | | | * Add default None for maxlen at xtrim command * Fix linter Co-authored-by: Mikhail Fedorov <mfgnik@yandex.team.ru> Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* async_cluster: add pipeline support (#2199)Utkarsh Gupta2022-05-305-56/+652
| | | Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* update black to 22.3.0 (#2171)Utkarsh Gupta2022-05-3029-525/+156
|
* async_cluster: add/update typing (#2195)Utkarsh Gupta2022-05-306-116/+123
| | | | | | | * async_cluster: add/update typing * async_cluster: update cleanup_kwargs with kwargs from async Connection * async_cluster: properly remove old nodes
* Fix Missing ClusterPipeline Lock (#2190)Greg Melton2022-05-304-0/+8
| | | | | | | | | | | * ClusterPipeline needs to initialize self._lock, otherwise a class instance will fail when calling get_redis_connection on the node * fix bad lint picked up from master * added change to CHANGES file * force ci build again * force ci build again
* fix: changed list type to single element type (#2203)Oleg A2022-05-301-7/+7
|
* set default response_callbacks to redis.asyncio.cluster.ClusterNode (#2201)rapidia2022-05-302-1/+6
| | | | | | | | | * set default response_callbacks to redis.asyncio.cluster.ClusterNode * add test case for ClusterNode class * fix lint error * merge test case into `test_startup_nodes`
* Support CF.MEXISTS + Clean bf/commands.py (#2184)Avital Fine2022-05-232-61/+41
| | | | | | | * Support CF.MEXISTS * Clean bf/commands.py Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Fix Linting and Test Failures (#2191)Greg Melton2022-05-233-6/+6
| | | | | | | * force triggering pr pipeline * fix lint error * https://github.com/RedisJSON/RedisJSON/pull/721 no longer clears strings or boolean scalars
* Fix modules links to https://redis.io/commands/ (#2185)Avital Fine2022-05-175-104/+96
|
* fix incorrect test (#2177)Avital Fine2022-05-162-15/+18
| | | | | * fix incorrect test * Fix types
* fix import (#2175)v4.3.1dvora-h2022-05-092-2/+3
|
* v4.3.0 (#2172)v4.3.0dvora-h2022-05-081-1/+1
|
* Get command keys for subcommands (#2170)dvora-h2022-05-085-3/+32
| | | | | * parse subcommands * fix tests
* Add support for CLUSTER SHARDS (#2151)dvora-h2022-05-083-1/+56
| | | | | | | | | * Add support for CLUSTER SHARDS * linters * add docstring * linters
* Add support for COMMAND LIST (#2149)dvora-h2022-05-082-0/+38
| | | | | * Add support for COMMAND LIST * style change
* Add Async RedisCluster (#2099)Utkarsh Gupta2022-05-0827-524/+4541
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Copy Cluster Client, Commands, Commands Parser, Tests for asyncio * Async Cluster Tests: Async/Await * Add Async RedisCluster * cluster: use ERRORS_ALLOW_RETRY from self.__class__ * async_cluster: rework redis_connection, initialize, & close - move redis_connection from NodesManager to ClusterNode & handle all related logic in ClusterNode class - use Locks while initializing or closing - in case of error, close connections instead of instantly reinitializing - create ResourceWarning instead of manually deleting client object - use asyncio.gather to run commands/initialize/close in parallel - inline single use functions - fix test_acl_log for py3.6 * async_cluster: add types * async_cluster: add docs * docs: update sphinx & add sphinx_autodoc_typehints * async_cluster: move TargetNodesT to cluster module * async_cluster/commands: inherit commands from sync class if possible * async_cluster: add benchmark script with aredis & aioredis-cluster * async_cluster: remove logging * async_cluster: inline functions * async_cluster: manage Connection instead of Redis Client * async_cluster/commands: optimize parser * async_cluster: use ensure_future & generators for gather * async_conn: optimize * async_cluster: optimize determine_slot * async_cluster: optimize determine_nodes * async_cluster/parser: optimize _get_moveable_keys * async_cluster: inlined check_slots_coverage * async_cluster: update docstrings * async_cluster: add concurrent test & use read_response/_update_moved_slots without lock Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Replace OSError exceptions from `can_read` with `redis.ConnectionError` (#2140)Kristján Valur Jónsson2022-05-082-2/+14
| | | | | | | * Replace OSError exceptions from `can_read` with `redis.ConnectionError` * Fix formatting * Revert unintended formatting change
* Add unittest for PubSub.connect() (#2167)Kristján Valur Jónsson2022-05-081-0/+82
| | | | | * Add unittest for PubSub reconnect * fix linting
* ACL SETUSER - add selectors and key based permissions (#2161)dvora-h2022-05-034-8/+77
| | | | | | | * acl setuser * async tests Co-authored-by: Chayim <chayim@users.noreply.github.com>
* skip graph.config test (#2163)dvora-h2022-05-031-0/+2
|
* adding caching, and removing 3.11 alpha (#2160)Chayim2022-05-031-12/+3
| | | | | Given that the CI runs of 3.11 cannot be exluded from the PR request list, it is effectively useless. Once this issue https://github.com/actions/toolkit/issues/399 is resolved, we can re-enable.
* Add support for redis 7 streams features (#2157)dvora-h2022-05-032-10/+55
| | | | | | | | | | | | | * xadd * streams redis 7 * linters * test xinfo stream * test xinfo stream * test xclaim