Commit Graph

2545 Commits

Author SHA1 Message Date
dependabot[bot] e63669e170
chore(deps): bump rojopolis/spellcheck-github-actions (#3188)
Bumps [rojopolis/spellcheck-github-actions](https://github.com/rojopolis/spellcheck-github-actions) from 0.40.0 to 0.45.0.
- [Release notes](https://github.com/rojopolis/spellcheck-github-actions/releases)
- [Changelog](https://github.com/rojopolis/spellcheck-github-actions/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rojopolis/spellcheck-github-actions/compare/0.40.0...0.45.0)

---
updated-dependencies:
- dependency-name: rojopolis/spellcheck-github-actions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2024-11-21 14:38:38 +02:00
LINKIWI fc32d0a01d
Recognize byte slice for key argument in cluster client hash slot computation (#3049)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2024-11-21 14:38:11 +02:00
Justin f1ffb55c9a
Only check latencies once every 10 seconds with `routeByLatency` (#2795)
* Only check latencies once every 10 seconds with `routeByLatency`

`routeByLatency` currently checks latencies any time a server returns
a MOVED or READONLY reply. When a shard is down, the ClusterClient
chooses to issue the request to a random server, which returns a MOVED
reply. This causes a state refresh and a latency update on all servers.
This can lead to significant ping load to clusters with a large number
of clients.

This introduces logic to ping only once every 10 seconds, only
performing a latency update on a node during the `GC` function if the
latency was set later than 10 seconds ago.

Fixes https://github.com/redis/go-redis/issues/2782

* use UnixNano instead of Unix for better precision

---------

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2024-11-20 14:36:39 +02:00
LINKIWI 080e051124
Eliminate redundant dial mutex causing unbounded connection queue contention (#3088)
* Eliminate redundant dial mutex causing unbounded connection queue contention

* Dialer connection timeouts unit test

---------

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2024-11-20 13:38:06 +02:00
ofekshenawa 930d904205
Add guidance on unstable RESP3 support for RediSearch commands to README (#3177)
* Add UnstableResp3 to docs

* Add RawVal and RawResult to wordlist

* Explain more about SetVal

* Add UnstableResp to wordlist
2024-11-13 13:20:59 +02:00
ofekshenawa 8b1073d2d6
Support Probabilistic commands with RESP 2 protocol (#3176)
* Support bloom resp 2

* Support Resp2 for BF.Info

* simplify BFInfoCmd field assignment using map-based key-to-field references
2024-11-13 11:15:19 +02:00
ofekshenawa d1b4eaed41
Support TimeSeries commands with RESP 2 protocol (#3184)
* Support Timeseries resp 2

* Change to resp 2

* Support Resp2 for TimeSeries commands
2024-11-13 10:27:00 +02:00
andy-stark-redis 80c9f5bb77
DOC-4345 added JSON samples for home page (#3183) 2024-11-06 17:25:46 +02:00
andy-stark-redis 1ed936eb09
DOC-4232 stream code examples (#3128)
* DOC-4232 added first stream example

* DOC-4232 examples up to xadd_7

* DOC-4232 examples up to xread

* DOC-4232 examples up to xclaim

* DOC-4232 added remaining examples

* DOC-4232 more fixes

* DOC-4232 fix for test fail on CI build

---------

Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2024-10-23 17:47:25 +03:00
Vladyslav Vildanov cc9bcb0c0f
Updated package version (#3158) 2024-10-15 16:32:53 +03:00
andy-stark-redis a8590e9879
Fix field name spellings (#3132)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2024-10-14 16:52:50 +03:00
ofekshenawa 2076975008
Support Json with Resp 2 (#3146)
* Support ReJSON resp 2 && Test ReJSON against RESP 2 and 3 && Add complex search and json test

* Remove comments

* Remove unnecessary changes
2024-10-14 14:37:22 +03:00
andy-stark-redis 7d56a2c38d
DOC-4328 added DEL, EXPIRE, and TTL command examples (#3143)
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2024-10-09 13:44:29 +03:00
andy-stark-redis e69895b94d
DOC-4324 added ZADD and ZRANGE command examples (#3142)
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2024-10-09 13:42:24 +03:00
andy-stark-redis f467d014a4
DOC-4323 added INCR command example (#3141)
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2024-10-09 13:40:21 +03:00
andy-stark-redis 0c84b6231f
DOC-4322 added HSET/HGET command page examples (#3140)
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2024-10-09 13:38:32 +03:00
andy-stark-redis 7fc46e206b
DOC-4233 added geospatial examples (#3126)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2024-10-09 13:36:42 +03:00
andy-stark-redis bef6b10d6f
DOC-4240 added Top-K examples (#3119)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2024-10-09 13:33:46 +03:00
andy-stark-redis e3d41f20f7
DOC-4235 added bitfield examples (#3125)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2024-10-09 13:31:14 +03:00
andy-stark-redis 13682c437e
DOC-4239 added Count-min sketch examples (#3118)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2024-10-09 13:24:47 +03:00
andy-stark-redis 7cc1e32e03
DOC-4236 added HyperLogLog examples (#3117)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2024-10-09 09:14:34 +03:00
andy-stark-redis 5d03e9ec33
DOC-4238 added Cuckoo filter examples (#3116)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2024-10-09 08:56:44 +03:00
Francesco Renzi e7868623ac
Remove direct read from TLS underlying conn (#3138) 2024-10-07 12:23:11 +03:00
ofekshenawa d9eeed131a
Fix Flaky Test: should handle FTAggregate with Unstable RESP3 Search Module and without stability (#3135) 2024-09-26 13:11:59 +03:00
andy-stark-redis e99abe4546
DOC-4237 added Bloom filter examples (#3115)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2024-09-26 10:41:54 +03:00
andy-stark-redis 9e79c9bd39
DOC-4228 JSON code examples (#3114)
* DOC-4228 added JSON code examples

* DOC-4228 example and formatting corrections

---------

Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2024-09-26 10:24:21 +03:00
andy-stark-redis 9e3709c404
DOC-4234 added bitmap examples (#3124)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2024-09-25 21:03:54 +03:00
andy-stark-redis 69b4c0165f
DOC-4241 added t-digest examples (#3123) 2024-09-25 19:54:20 +03:00
andy-stark-redis 233f97accd
DOC-4229 sorted set code examples (#3113)
* DOC-4229 added sorted set doc examples

* DOC-4229 wrapped long lines

---------

Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2024-09-12 16:26:16 +03:00
andy-stark-redis af13ee34f9
DOC-4231 added set datatype examples (#3111)
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2024-09-12 14:16:15 +03:00
andy-stark-redis 79ed39adcc
DOC-4230 list doc code examples (#3110)
* DOC-4230 list tutorial examples

* DOC-4230 added missing printout comment

* DOC-4230 added set datatype examples

* Revert "DOC-4230 added set datatype examples"

This reverts commit 4f208aaf7b.

---------

Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2024-09-12 13:54:42 +03:00
andy-stark-redis 04f642ff5e
Doc 4226 hash tces (#3106)
* DOC-4226 hash examples for docs

* DOC-4226 added hash scan examples

* DOC-4226 fixed test output issues

---------

Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2024-09-12 11:45:38 +03:00
ofekshenawa 04005cbdc7
Support Resp 3 Redis Search Unstable Mode (#3098)
* Updated module version that points to retracted package version (#3074)

* Updated module version that points to retracted package version

* Updated testing image to latest

* support raw parsing for problematic Redis Search types

* Add UnstableResp3SearchModule to client options

* Add tests for Resp3 Search unstable mode

* Add tests for Resp3 Search unstable mode

* Add readme note

* Add words to spellcheck

* Add UnstableResp3SearchModule check to assertStableCommand

* Fix assertStableCommand logic

* remove go.mod changes

* Check panic occur on tests

* rename method

* update errors

* Rename flag to UnstableResp3

---------

Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
Co-authored-by: vladvildanov <divinez122@outlook.com>
2024-09-12 11:26:10 +03:00
Ivan Pechorin 9f6171dbf6
properly retract v9.5.3 of redisotel and other extra packages (#3108) 2024-09-11 19:35:16 +03:00
andy-stark-redis 1da50b33ef
DOC-4213 string code examples (#3102)
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2024-09-06 14:49:25 +03:00
ofekshenawa f99447854b
Add test coverage reporting and Codecov badge (#3055)
* Add codecov to ci

* Add codecov to ci

* update yanl

* Add changes

* Add changes

* test

* Add changes

* Add changes

* Add changes
2024-09-03 17:09:47 +03:00
Vladyslav Vildanov 00d98485f8
Updated module version that points to retracted package version (#3074)
* Updated module version that points to retracted package version

* Updated testing image to latest
2024-07-31 11:15:15 +03:00
ofekshenawa 1c09565444
Retract versions 9.5.3 and 9.5.4 (#3068) 2024-07-24 14:14:06 +03:00
dependabot[bot] d50858f3ad
chore(deps): bump rojopolis/spellcheck-github-actions (#3067)
Bumps [rojopolis/spellcheck-github-actions](https://github.com/rojopolis/spellcheck-github-actions) from 0.38.0 to 0.40.0.
- [Release notes](https://github.com/rojopolis/spellcheck-github-actions/releases)
- [Changelog](https://github.com/rojopolis/spellcheck-github-actions/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rojopolis/spellcheck-github-actions/compare/0.38.0...0.40.0)

---
updated-dependencies:
- dependency-name: rojopolis/spellcheck-github-actions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-23 11:13:40 +03:00
ofekshenawa 3613df6115
Add tests case with FLOAT16 and BFLOAT16 vectors (#3054)
* Add tests case with FLOAT16 and BFLOAT16 vectors

* Remove from enterprise
2024-07-17 21:56:58 +03:00
ofekshenawa 46d2452fbb
Test RediSearch dialect 4 (#3052)
* Test dialect 4

* Add support for num and email

* remove tests from RE
2024-07-17 11:55:58 +03:00
ofekshenawa 89f4dfa309
Add tests for search GEO (#3051)
* Add tests for search GEO

* Remove from enterprise
2024-07-17 11:41:48 +03:00
ofekshenawa 95c5deb2bf
Support RediSearch empty values (#3053)
* Support RediSearch empty values

* Remove from enterprise
2024-07-17 09:48:41 +03:00
dependabot[bot] 67824ebf86
chore(deps): bump golangci/golangci-lint-action from 4 to 6 (#2993)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 4 to 6.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v4...v6)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Monkey <golang@88.com>
2024-07-14 01:30:07 +08:00
LINKIWI 5756b05219
Avoid unnecessary retry delay following MOVED and ASK redirection (#3048) 2024-07-13 14:55:12 +08:00
naiqianz 0858ed24e6
add test for tls connCheck #3025 (#3047)
* add a check for TLS connections.
2024-07-12 11:16:21 +08:00
ofekshenawa 8a0c59b101
TimeSeries insertion filters for close samples (#3003)
* TimeSeries insertion filters for close samples

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2024-07-11 11:57:56 +03:00
tzongw 75398584cf
Support Hash-field expiration commands in Pipeline & Fix HExpire HExpireWithArgs expiration (#3038)
* Support Hash-field expiration commands in Pipeline

* Fix HExpire & HExpireWithArgs expiration

* Fix HExpire & HPExpire Testcase

* Update commands_test.go

---------

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
Co-authored-by: Monkey <golang@88.com>
2024-07-11 13:08:23 +08:00
ofekshenawa 6a584c1e2b
Support Hash-field expiration for 7.4 CE RC2 (#3040)
Co-authored-by: Monkey <golang@88.com>
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2024-07-10 23:30:32 +08:00
Srikar Jilugu 9c1f4f0642
fix node routing in slotClosestNode (#3043)
* fix node routing when all nodes are failing

* fix minlatency zero value
2024-07-10 11:26:27 +08:00