1
0
mirror of https://github.com/redis/go-redis.git synced 2025-04-16 09:23:06 +03:00

2531 Commits

Author SHA1 Message Date
Nedyalko Dyakov
a29d91d9ca
release 9.7.3, retract 9.7.2 (#3314) extra/redisprometheus/v9.7.3 v9.7.3 extra/rediscmd/v9.7.3 extra/rediscensus/v9.7.3 extra/redisotel/v9.7.3 2025-03-20 18:24:34 +02:00
Nedyalko Dyakov
ce3034c7b3
bump version to 9.7.2 v9.7.2 extra/redisprometheus/v9.7.2 extra/rediscmd/v9.7.2 extra/redisotel/v9.7.2 extra/rediscensus/v9.7.2 2025-03-20 16:49:34 +02:00
Nedyalko Dyakov
0af2b32f93
fix: handle network error on SETINFO (#3295) (CVE-2025-29923)
* fix: handle network error on SETINFO

This fix addresses potential out of order responses as described in `CVE-2025-29923`

* fix: deprecate DisableIndentity and introduce DisableIdentity

Both options will work before V10. In v10 DisableIndentity will be dropped. The preferred flag to use is `DisableIdentity`.
2025-03-20 16:47:52 +02:00
Nedyalko Dyakov
3d041a1dd6
release: 9.7.1 patch (#3278)
* 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

* 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>

* SortByWithCount FTSearchOptions fix (#3201)

* SortByWithCount FTSearchOptions fix

* FTSearch test fix

* Another FTSearch test fix

* Another FTSearch test fix

---------

Co-authored-by: Christopher Golling <Chris.Golling@aexp.com>

* Fix race condition in clusterNodes.Addrs() (#3219)

Resolve a race condition in the clusterNodes.Addrs() method.
Previously, the method returned a reference to a string slice, creating
the potential for concurrent reads by the caller while the slice was
being modified by the garbage collection process.

Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>

* chore: fix some comments (#3226)

Signed-off-by: zhuhaicity <zhuhai@52it.net>
Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>

* fix(aggregate, search): ft.aggregate bugfixes (#3263)

* fix: rearange args for ft.aggregate

apply should be before any groupby or sortby

* improve test

* wip: add scorer and addscores

* enable all tests

* fix ftsearch with count test

* make linter happy

* Addscores is available in later redisearch releases.

For safety state it is available in redis ce 8

* load an apply seem to break scorer and addscores

* fix: add unstableresp3 to cluster client (#3266)

* fix: add unstableresp3 to cluster client

* propagate unstableresp3

* proper test that will ignore error, but fail if client panics

* add separate test for clusterclient constructor

* fix: flaky ClientKillByFilter test (#3268)

* Reinstate read-only lock on hooks access in dialHook (#3225)

* use limit when limitoffset is zero (#3275)

* remove redis 8 comments

* update package versions

* use latest golangci-lint

* fix(search&aggregate):fix error overwrite and typo  #3220 (#3224)

* fix (#3220)

* LOAD has NO AS param(https://redis.io/docs/latest/commands/ft.aggregate/)

* fix typo: WITHCOUT -> WITHCOUNT

* fix (#3220):

    * Compatible with known RediSearch issue in test

* fix (#3220)

    * fixed the calculation bug of the count of load params

* test should not include special condition

* return errors when they occur

---------

Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>

* 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>

---------

Signed-off-by: zhuhaicity <zhuhai@52it.net>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
Co-authored-by: LINKIWI <LINKIWI@users.noreply.github.com>
Co-authored-by: Cgol9 <chris.golling@verizon.net>
Co-authored-by: Christopher Golling <Chris.Golling@aexp.com>
Co-authored-by: Shawn Wang <62313353+shawnwgit@users.noreply.github.com>
Co-authored-by: ZhuHaiCheng <zhuhai@52it.net>
Co-authored-by: herodot <54836727+bitsark@users.noreply.github.com>
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
extra/redisotel/v9.7.1 v9.7.1 extra/rediscensus/v9.7.1 extra/redisprometheus/v9.7.1 extra/rediscmd/v9.7.1
2025-02-21 15:40:07 +02:00
Vladyslav Vildanov
ed37c33a90
Updated package version [9.7] (#3159) extra/redisprometheus/v9.7.0 v9.7.0 extra/rediscmd/v9.7.0 extra/redisotel/v9.7.0 extra/rediscensus/v9.7.0 2024-10-16 10:01:32 +03:00
Vladyslav Vildanov
135f8e3b12
Fix field name spellings (#3132) (#3156)
Co-authored-by: andy-stark-redis <164213578+andy-stark-redis@users.noreply.github.com>
2024-10-14 17:13:57 +03:00
Vladyslav Vildanov
ac2e91d9d9
Support Json with Resp 2 (#3146) (#3155)
* Support ReJSON resp 2 && Test ReJSON against RESP 2 and 3 && Add complex search and json test

* Remove comments

* Remove unnecessary changes

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2024-10-14 14:59:45 +03:00
Vladyslav Vildanov
ec680aec14
Remove direct read from TLS underlying conn (#3138) (#3154)
Co-authored-by: Francesco Renzi <rentziass@github.com>
2024-10-14 14:55:45 +03:00
Vladyslav Vildanov
ad131f49b0
Updated package version (#3134)
* Updated package version

* Changed version format according to specification

* Updated submodule versions
v9.7.0-beta.1
2024-09-26 13:14:30 +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 4f208aaf7bf26c60f677ef872b794e0d641337cc.

---------

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.
v9.5.4
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
Immersed
26e0c49acf
Update pubsub.go (#3042)
Change context.Background() to ctx
2024-07-05 10:27:44 +08:00
ofekshenawa
4cf03dbd39
Change monitor test to run manually (#3041)
* Change monitor test to run manually

* fix
2024-07-02 16:10:30 +03:00
dependabot[bot]
daf84a0911
chore(deps): bump rojopolis/spellcheck-github-actions (#3028)
Bumps [rojopolis/spellcheck-github-actions](https://github.com/rojopolis/spellcheck-github-actions) from 0.36.0 to 0.38.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.36.0...0.38.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: Monkey <golang@88.com>
2024-06-27 14:06:39 +08:00
ofekshenawa
244a3e22da
RediSearch Support (#2801)
* Add RediSearch Support

* searach

* Add RediSearch commands and tests

* Adding more tests and fixing commands

* Remove unnecessary additions

* fixing tests

* fixing tests

* fixing tests

* fixing FTConfig dialect test

* fix commects

* make enum for field types

* Support resp 2

* fix golang ci

* fix ftinfo

---------

Co-authored-by: Chayim <chayim@users.noreply.github.com>
2024-06-26 13:13:06 +03:00
Andrew Haines
2d7382e8cc
Add (*StatusCmd).Bytes() method (#3030)
Signed-off-by: Andrew Haines <andrew@haines.org.nz>
Co-authored-by: Monkey <golang@88.com>
2024-06-21 11:00:16 +08:00
dependabot[bot]
fc4c8bd2f7
chore(deps): bump golang.org/x/net in /example/otel (#3000)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.20.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.20.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

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-06-21 09:58:08 +08:00
b1ron
3975cd5380
Add support for XREAD last entry (#3005)
* add support for XREAD last entry

* handle reading from multiple streams

* add test to ensure we block for empty stream

* small tweak

* add an option to XReadArgs instead

* modify test comment

* small preallocation optimization

* Changed argument to generic ID, skip tests on Enterprise

* Fix test case

* Updated expiration command

---------

Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
Co-authored-by: vladvildanov <divinez122@outlook.com>
2024-06-20 11:25:51 +03:00
ofekshenawa
445d2667eb
remove tests from RE (#3035) 2024-06-20 02:25:49 +03:00
Gabriel Erzse
097cddbeb0
Support NOVALUES parameter for HSCAN (#2925)
* Support NOVALUES parameter for HSCAN

Issue #2919

The NOVALUES parameter instructs HSCAN to only return the hash keys,
without values.

* Update hash_commands.go

---------

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2024-06-20 01:24:45 +03:00
Vladyslav Vildanov
0777247baa
Added test case for CLIENT KILL with MAXAGE option (#2971)
* Added test case for CLIENT KILL with MAXAGE option

* Fixed sleep value

* Added additional condition to kill specific connection

* Test commit

* Test commit

* Updated test case to handle timeouts

---------

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2024-06-20 01:00:09 +03:00
ofekshenawa
a9b4c5cfe6
Support Hash-field expiration commands (#2991)
* Add HExpire command

* Add HPExpire, HexpireAt, HPExpireAt, HTTL, HPTTL, HPersist,HExpireTime, HPExpireTIme, HGetF, HSetF commands

* add docstring

* add tests and fix commands

* modify commands

* api changes

* fix tests

* remove tests from RE
2024-06-20 00:59:27 +03:00
ofekshenawa
2a3de7e1fc
Change redis version from 7.2 to 7.4 in makefile (#3034)
* Change redis version from 7.2 to 7.4

* fix jsonGet test

* Add 'watch' to client info

* Remove jsonGet from Enterprise tests
2024-06-20 00:08:35 +03:00
Vladimir Mihailenco
f752b9a9d5
Release/v9.5.3 (#3018)
* chore: ignore package.json

* chore: release v9.5.3 (release.sh)
v9.5.3
2024-06-07 17:04:08 +03:00
Monkey
2d8fa02ac2
fix: fix #2681 (#2998)
Signed-off-by: monkey92t <golang@88.com>
v9.5.2
2024-05-29 10:55:28 +08:00