summaryrefslogtreecommitdiff
path: root/runtest-moduleapi
diff options
context:
space:
mode:
authorqetu3790 <qetu3790@163.com>2021-10-19 16:50:37 +0800
committerGitHub <noreply@github.com>2021-10-19 11:50:37 +0300
commit4962c5526d98c0db769c15edeb81be1fa441ccb2 (patch)
tree17f248ca5aacc90174f3771656123ff7d20e938f /runtest-moduleapi
parentc9fabc2ef0737f3b877e18b968b502d895bb2503 (diff)
downloadredis-4962c5526d98c0db769c15edeb81be1fa441ccb2.tar.gz
Release clients blocked on module commands in cluster resharding and down state (#9483)
Prevent clients from being blocked forever in cluster when they block with their own module command and the hash slot is migrated to another master at the same time. These will get a redirection message when unblocked. Also, release clients blocked on module commands when cluster is down (same as other blocked clients) This commit adds basic tests for the main (non-cluster) redis test infra that test the cluster. This was done because the cluster test infra can't handle some common test features, but most importantly we only build the test modules with the non-cluster test suite. note that rather than really supporting cluster operations by the test infra, it was added (as dup code) in two files, one for module tests and one for non-modules tests, maybe in the future we'll refactor that. Co-authored-by: Oran Agra <oran@redislabs.com>
Diffstat (limited to 'runtest-moduleapi')
-rwxr-xr-xruntest-moduleapi1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtest-moduleapi b/runtest-moduleapi
index 0e78e3e84..f6b2a1b72 100755
--- a/runtest-moduleapi
+++ b/runtest-moduleapi
@@ -40,5 +40,6 @@ $TCLSH tests/test_helper.tcl \
--single unit/moduleapi/list \
--single unit/moduleapi/stream \
--single unit/moduleapi/datatype2 \
+--single unit/moduleapi/cluster \
--single unit/moduleapi/aclcheck \
"${@}"