* Add debug info to assertion messages for root cause analysis
* Fix flaky timeout assertion in maintenance notification test
* Apply same tolerance fix to NORMAL_COMMAND_TIMEOUT assertions
Initially, there was a bug in the server where the two additional props were
returned as string instead of number. This should now be fixed in the GA, so
no need to parse to Number anymore.
* fix(socket): prevent false-ready state when socket errors during handshake
Fixes race condition where async socket errors during connection
handshake don't trigger reconnection. Validates socket state after
initiator completes to catch errors swallowed by command handlers.
fixes: #3108
* remove comments
Currently, the release process incorrectly leaves the dist/package.json's version
to be the old version. This in turn makes the client setinfo lib-ver command to
send wrong version to redis.
Fix: use the release-it/bumper package to update dist/package.json with the
correct version upon release.
fixes: #3118
* feat(xreadgroup): add claim attribute
the CLAIM attribute can be used to instruct redis to return
PEL ( Pending Entries List ) entries with their respective
deliveries and ms since last delivery
* remove m01 from test matrix
* add jsdoc
* introduce global interceptors
* move proxy stuff to new folder
* implement resp framer
* properly handle request/response and push
* add global interceptor
* fix(ssubscribe): properly resubscribe in case of shard failover
1) when RE failover happens, there is a disconnect
2) affected Client reconnects and tries to resubscribe all existing listeners
ISSUE #1: CROSSSLOT Error - client was doing ssubscribe ch1 ch2.. chN which, after the failover could result in CROSSSLOT ( naturally, becasuse now some slots could be owned by other shards )
FIX: send one ssubscribe command per channel instead of one ssubscribe for all channels
ISSUE #2: MOVED Error - some/all of the channels might be moved somewhere else
FIX: 1: Propagate the error to the Cluster. 2: Cluster rediscovers topology.
3: Cluster resubscribes all listeners of the failed client ( possibly some/all of those will end up in a different client after the rediscovery )
fixes: #2902
Certain command parameter enums, specifically ClientKillFilters for the CLIENT KILL command, were not publicly exported by the @redis/client package. The purpose of this change is to make the ClientKillFilters enum accessible to all package consumers, eliminating the need for users to rely on an unstable internal import path.
This matters because it provides a reliable and supported way for developers to use commands that require these enums, improving the package's usability and API stability.
fixes: #2805
Co-authored-by: Nikolay Karadzhov <nkaradzhov89@gmail.com>
* rename maint options according to the latest client options
* adjust env variables
cae repo uses RE_FAULT_INJECTOR_URL for fault injector
DATABASE_NAME is needed to choose from the many databases in cae
* fix connection cleanup test