1
0
mirror of https://github.com/redis/go-redis.git synced 2025-10-26 06:51:16 +03:00
Commit Graph

2789 Commits

Author SHA1 Message Date
Nedyalko Dyakov
f0fbea66ef add some comments 2025-10-21 18:23:45 +03:00
Nedyalko Dyakov
44917ef1d4 remove rlock 2025-10-21 18:09:47 +03:00
Nedyalko Dyakov
1ee52937e2 address pr comments 2025-10-21 18:05:09 +03:00
Nedyalko Dyakov
528f2e92a9 Merge remote-tracking branch 'origin/master' into ndyakov/pool-reauth 2025-10-21 16:17:45 +03:00
Nedyalko Dyakov
67daad7bb1 address pr comments 2025-10-21 16:17:38 +03:00
Nedyalko Dyakov
ce499792f0 exponential backoff 2025-10-21 16:15:25 +03:00
Justin
8ca7979664 chore(docs): explain why MaxRetries is disabled for ClusterClient (#3551)
Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
2025-10-21 16:15:25 +03:00
Warnar Boekkooi
b11f928dea chore(redisotel): use metric.WithAttributeSet to avoid copy (#3552)
In order to improve performance replace `WithAttributes` with `WithAttributeSet`.
This avoids the slice allocation and copy that is done in `WithAttributes`.

For more information see https://github.com/open-telemetry/opentelemetry-go/blob/v1.38.0/metric/instrument.go#L357-L376
2025-10-21 16:15:24 +03:00
Nedyalko Dyakov
3211b13e4f Update internal/pool/conn.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-21 16:10:08 +03:00
Justin
14a8814540 chore(docs): explain why MaxRetries is disabled for ClusterClient (#3551)
Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
2025-10-21 15:03:58 +03:00
Warnar Boekkooi
8ca21d2600 chore(redisotel): use metric.WithAttributeSet to avoid copy (#3552)
In order to improve performance replace `WithAttributes` with `WithAttributeSet`.
This avoids the slice allocation and copy that is done in `WithAttributes`.

For more information see https://github.com/open-telemetry/opentelemetry-go/blob/v1.38.0/metric/instrument.go#L357-L376
2025-10-21 14:56:06 +03:00
Nedyalko Dyakov
494a89bb4b Merge branch 'master' into ndyakov/pool-reauth 2025-10-21 11:28:21 +03:00
Hristo Temelski
7aa4a60667 update gomods to align them with the latest beta (#3539)
Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
2025-10-21 11:28:04 +03:00
Nedyalko Dyakov
4049d5e55e Update internal/auth/streaming/pool_hook.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-17 18:04:11 +03:00
Nedyalko Dyakov
19f40804a3 Update internal/pool/pool.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-17 18:03:35 +03:00
Nedyalko Dyakov
e94cc9f04f Merge branch 'master' into ndyakov/pool-reauth 2025-10-17 17:47:16 +03:00
Nedyalko Dyakov
f14095b12c only async reauth 2025-10-17 17:39:47 +03:00
Hristo Temelski
1e6ee06740 test(e2e): testing framework upgrade (#3541)
* update e2e test, change script

* update script and tests

* fixed bdbid parsing

* disabled majority of tests, swapped event order

* change the config tag

* revert test order

* fix typo

* reenable all e2e tests

* change the clonfig flag key for all e2e tests

* improve logging for debug purposes of tests

* longer deadline for FI in CI

* increase waiting for notifications

* extend tests

* dont fail on flaky third client

* fi new params

* fix test build

* more time for migrating

* first wait for FI action, then assert notification

* fix test build

* fix tests

* fix tests

* change output

* global print logs for tests

* better output

* fix error format

* maybe the notification is already received

* second and third client fix

* print output if failed

* better second and third client checks

* output action data if notification is not received

* stop command runner

* database create / delete actions

* database create / delete actions used in tests

* fix import

* remove example

* remove unused var

* use different port than the one in env

* wait for action to get the response

* fix output

* fix create db config

* fix create db config

* use new database for client

* fix create db config

* db per scenario

* less logs, correct check

* Add CTRF to the scenario tests (#3545)

* add some json ctrf improvements

* fix -v

* attempt to separate the output

---------

Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>

---------

Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>
Co-authored-by: kiryazovi-redis <ivaylo.kiryazov@redis.com>
Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
2025-10-17 17:23:10 +03:00
Nedyalko Dyakov
c715185161 fix tests 2025-10-17 16:56:18 +03:00
Nedyalko Dyakov
72cf74a6be give some time for the background to execute commands 2025-10-17 16:46:20 +03:00
Nedyalko Dyakov
f8867759da pass hooks so the tests can observe reauth 2025-10-17 16:38:33 +03:00
Nedyalko Dyakov
3020e3a10c be able to reject connection OnGet 2025-10-17 16:26:35 +03:00
Nedyalko Dyakov
4bc6d335b8 sync and async reauth based on conn lifecycle 2025-10-17 15:53:52 +03:00
Nedyalko Dyakov
afba8c285f fix nil listener 2025-10-17 15:17:13 +03:00
Nedyalko Dyakov
0e10cd7cd2 fix mocks 2025-10-17 13:57:13 +03:00
Nedyalko Dyakov
d74671b094 fix maintnotif pool hook 2025-10-17 13:47:30 +03:00
Nedyalko Dyakov
acb55d8741 wip refactor entraid 2025-10-17 12:42:52 +03:00
Nedyalko Dyakov
0c4f8fb1e8 Update internal/pool/buffer_size_test.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-15 21:04:26 +03:00
Nedyalko Dyakov
6ad9a67543 Update internal/auth/cred_listeners.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-15 19:28:41 +03:00
Nedyalko Dyakov
391b6c523c address pr comments 2025-10-15 19:22:02 +03:00
Nedyalko Dyakov
e03396ebac lock inside the listeners collection 2025-10-15 19:14:10 +03:00
Nedyalko Dyakov
011ef96716 fix(test): fix flaky test 2025-10-15 18:56:18 +03:00
Nedyalko Dyakov
77c0c73b75 rename test 2025-10-15 18:50:59 +03:00
Nedyalko Dyakov
e7dc339478 add Used to clarify the state of the conn 2025-10-15 18:44:10 +03:00
Nedyalko Dyakov
14280684ae update marked as queued 2025-10-15 16:29:44 +03:00
Nedyalko Dyakov
1bbf2e6781 few small improvements 2025-10-15 15:43:17 +03:00
Nedyalko Dyakov
07283ecfc6 add design decision comment 2025-10-15 14:51:18 +03:00
Nedyalko Dyakov
90bfdb3aa3 better conn usable timeout 2025-10-14 23:06:55 +03:00
Nedyalko Dyakov
6c54ab59d9 Merge branch 'master' into ndyakov/pool-reauth 2025-10-14 22:57:53 +03:00
Nedyalko Dyakov
8a629fb5a7 fix race in tests 2025-10-14 22:45:37 +03:00
Nedyalko Dyakov
d39da69f52 fix credListeners map 2025-10-14 21:18:52 +03:00
Nedyalko Dyakov
5fe0bfa0ff fix(pool): wip, pool reauth should not interfere with handoff 2025-10-14 21:06:40 +03:00
Jason Parraga
f7eed76fbc Add support for filtering traces for certain commands (#3519)
* Add support for filtering commands when tracing

Signed-off-by: Jason Parraga <sovietaced@gmail.com>

* Filter sensitive data by default

Signed-off-by: Jason Parraga <sovietaced@gmail.com>

* Address comments

Signed-off-by: Jason Parraga <sovietaced@gmail.com>

---------

Signed-off-by: Jason Parraga <sovietaced@gmail.com>
Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
2025-10-14 18:15:58 +03:00
dependabot[bot]
3d68c7e42f chore(deps): bump github/codeql-action from 3 to 4 (#3544)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3 to 4.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: '4'
  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>
2025-10-14 16:18:39 +03:00
Feng.YJ
3ad9f9cb23 fix: add missing error variable for non-unix build constraints (#3538)
* fix: add missing error variable for non-unix build constraints

* chore: name "_" for unused parameters

---------

Co-authored-by: Elena Kolevska <elena-kolevska@users.noreply.github.com>
2025-09-29 09:35:04 +03:00
Hristo Temelski
a44df88257 version 9.15.1, used to retract itself and 9.15.0 (#3537)
* version 9.15.1, used to retract itself and 9.15.0

* added retract to the submodules

* revert submodules retracts as they are not needed
extra/redisotel/v9.15.1 extra/rediscensus/v9.15.1 extra/redisprometheus/v9.15.1 v9.15.1 extra/rediscmd/v9.15.1
2025-09-27 23:33:54 +03:00
Hristo Temelski
819f01b489 retract wrongly released version (#3533) extra/redisotel/v9.16.0-beta.1 extra/redisprometheus/v9.16.0-beta.1 extra/rediscensus/v9.16.0-beta.1 v9.16.0-beta.1 extra/rediscmd/v9.16.0-beta.1 2025-09-27 15:38:46 +01:00
Hristo Temelski
7405cff430 depreciate 9.15.0 (#3532) extra/rediscensus/v9.15.0-beta.3 extra/rediscmd/v9.15.0-beta.3 extra/redisotel/v9.15.0-beta.3 extra/redisprometheus/v9.15.0-beta.3 v9.15.0-beta.3 2025-09-27 02:17:21 +03:00
Hristo Temelski
8b38e27f97 release: 9.15.0-beta.2 (#3531) extra/redisprometheus/v9.15.0-beta.2 extra/redisotel/v9.15.0-beta.2 v9.15.0-beta.2 extra/rediscmd/v9.15.0-beta.2 extra/rediscensus/v9.15.0-beta.2 2025-09-26 19:40:07 +03:00
Nedyalko Dyakov
75ddeb3d5a feat(e2e-testing): maintnotifications e2e and refactor (#3526)
* e2e wip

* cleanup

* remove unused fault injector mock

* errChan in test

* remove log messages tests

* cleanup log messages

* s/hitless/maintnotifications/

* fix moving when none

* better logs

* test with second client after action has started

* Fixes

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Test fix

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* feat(e2e-test): Extended e2e tests

* imroved e2e test resiliency

---------

Signed-off-by: Elena Kolevska <elena@kolevska.com>
Co-authored-by: Elena Kolevska <elena@kolevska.com>
Co-authored-by: Elena Kolevska <elena-kolevska@users.noreply.github.com>
Co-authored-by: Hristo Temelski <hristo.temelski@redis.com>
2025-09-26 19:17:09 +03:00