3fc96195a4
Reduce dependency chain
2020-09-17 14:32:08 +01:00
c5d4b71f66
Fix race
2020-09-17 12:36:10 +03:00
1a65d677b3
Fix not applying updated ClusterClient context after calling WithContext method ( #1480 )
...
pass context to command info cache init call
2020-09-14 15:30:50 +03:00
cbce5dbfa2
Add Sentinel RouteBy
2020-09-11 16:06:08 +03:00
afb0064872
Merge pull request #1484 from go-redis/fix/cluster-node-latency
...
Periodically update Cluster node latency
2020-09-11 14:29:38 +03:00
46e04ce67e
Fix build
2020-09-11 14:17:23 +03:00
83d698027f
Periodically update Cluster node latency
2020-09-11 12:33:03 +03:00
b657760cca
Tweak number of retries
2020-09-11 12:13:27 +03:00
6c85ee767a
Add NewFailoverClusterClient
2020-09-09 15:37:52 +03:00
8a5db20d32
fix nil node dereference when use RouteByLatency in cluster
2020-08-06 18:04:04 +03:00
21a1f58caf
Retry timeout and retryable error
2020-07-24 15:52:15 +03:00
862dcbadae
Try 3 random addrs to load commands
2020-07-19 09:51:41 +03:00
8a3f304b25
Log with context to associate all log by traceID ( #1413 )
...
* Log with context to associate all log by traceID
2020-07-18 09:04:36 +03:00
38c87c1f84
Fix golangci
2020-07-16 10:01:27 +03:00
d66af70ae8
Rename clusterAddrs to activeAddrs
2020-07-09 11:35:19 +03:00
f108b8bce3
Merge pull request #1377 from davidfu13/master
...
Make cluster client get updated nodes' addrs
2020-07-09 11:27:43 +03:00
1831363467
Add RecordError
2020-07-09 10:39:46 +03:00
dc52593c8c
Reload state on read only error
2020-06-30 11:13:15 +03:00
64995f9a51
Tweak auto-reloads
2020-06-29 17:51:47 +03:00
0ffefcde98
Use random node to load cluster slots
2020-06-29 17:26:11 +03:00
bb6761fe83
Make cluster client get updated nodes' addrs
...
During loading state, if all the nodes can't be connected, it's
possible that all the nodes' IP addresses have changed at the same
time. Clear the clusterAddrs so that the cluster client has chance
to get updated nodes' IP addresses by using the initial setting of
cluster addresses.
2020-06-15 15:24:18 +08:00
736fa28659
Cleanup
2020-06-10 15:04:12 +03:00
ef82e3705c
Add OnConnect context
2020-06-10 10:36:22 +03:00
4440575966
Merge branch 'v8'
2020-05-21 10:16:44 +03:00
f8e2e89878
Add ClusterOptions.NewClient hook
...
Replaces https://github.com/go-redis/redis/pull/1316
2020-05-21 09:34:55 +03:00
2960952204
Merge pull request #1316 from YiweiZhuang/yzhuang/add_limiter_in_cluster_client
...
allow cluster client to use limiter
2020-05-21 09:12:59 +03:00
cf6cf7f450
Add AuthACL
2020-05-21 08:59:51 +03:00
3dcb844106
Bump major version
2020-05-19 08:52:38 +03:00
f5593121e0
Add ctx as first arg
2020-05-19 08:52:38 +03:00
5cd9e7f2f8
allow cluster client use limiter
2020-04-30 18:35:46 -07:00
218b17f0fc
Include multi & exec in pipeline hook
2020-02-14 15:55:16 +02:00
49a0c8c319
Add test for ring and cluster hooks
2020-02-14 14:30:40 +02:00
2e3402d33d
Don't allocate tmp slice in txPipelineWriteMulti
2020-02-14 12:55:59 +02:00
512e6c7a40
Unexport Clone and Lock from embedded hooks
2020-02-12 13:02:09 +02:00
d52b11cb42
Exported the setErr function as public
2020-02-03 17:53:47 +08:00
45de1c42ae
Set error on the commands in case there are no more attempts left
2020-02-02 14:17:14 +02:00
152e52f203
Fix WithContext race
2019-08-24 12:40:23 +03:00
2a46cb006d
Add withConn and set cmd errors more consistently
2019-08-09 13:53:05 +03:00
7779accbea
Use semantic import versioning
2019-08-08 14:29:44 +03:00
48224a399f
Remove releaseConnStrict
2019-08-08 11:44:55 +03:00
2927e15b6b
Retry BadConnError
2019-08-08 11:44:55 +03:00
4e9cea8876
Add proper SingleConnPool implementation
2019-08-03 17:31:28 +03:00
c837612911
Cancel sleep when context is cancelled
2019-07-30 12:13:00 +03:00
f3ce3362a0
Add golangci-lint
2019-07-25 14:36:50 +03:00
52ec525849
Propagate context in Pipeline
2019-07-25 13:28:15 +03:00
9d9e126af0
Implement TxPipeline for Ring
2019-07-19 12:00:11 +03:00
2cbb5194fb
Fix WithContext and add tests
2019-07-04 11:57:54 +03:00
fa479814de
Fix cmdsInfo to create node
2019-06-29 10:28:33 +03:00
fa2f6ee00b
Merge pull request #1056 from go-redis/fix/do-not-use-random-node
...
Use master / another slave node when current node is failing
2019-06-19 11:02:25 +03:00
3bdf64784a
Cleanup
2019-06-17 12:32:40 +03:00