redis-shake工具
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
377 B

Feature 1.6 (#171) * update vendor's path * bugfix: index panic * bugfix: index panic2 * finish parallel rump * release 1.6.5 * cherry-pick v1.4.4 * delete single command failed when filter key given * polish ChangeLog date * add version * Improve 1.6.7 (#95) * add metric for rump, haven't tested yet * debug * debug2 * debug3 * debug4 * debug5 * debug6 * debug7 * debug8 * debug9 * debug10 * debug11 * debug12 * add qos: limit the qps * debug12 * debug13 * debug14 * debug15 * debug16 * split big key in rump * update ChangeLog: 1.6.7 * update ChangeLog: 1.6.7 * support filter by key in restore and rump mode * update redis-shake.conf * move function HasAtLeastOnePrefix into redis-shake/common * add metric in mode * add hypervisor * Add Prometheus metrics (#103) * support prometheus metrics * add namespace to prometheus metrics * reuse previous average delay calculate function * use const dbSyncerLabelName * update vendor.json * add contributors * add ChangeLog, polish code * modify scripts * polish README * support lua filter * release v1.6.9 * polish conf comments * polish conf again * polish code and cond * polish code and cond2 * polish * support lua in decode mode * support lua in decode mode2 * fix bug of filter lua * update driver to add more error info * polish README * fix panic in metrics * check version and checksum when meeting error in rump mode * bugfix: cluster receive block * fix batcher is nil * add ChangeLog * bugfix: add bypass metric * polish log print * polish log print2 * release v1.6.12 * polish conf * fix enable automatic discovery with '@' * support target.db in rump mode * update fix enable automatic discovery with '@' * support target.db in rump mode * polish code comment2 * add debug log in RDB syncing * add target db judge when target type is cluster * add more debug log in RDB * add more debug log in RDB2 * support filter db to db0 when target type is cluster, seee #127 * release v1.6.13 * polish code * polish README * improve: 'info xxx' command isn't supported in codis, used 'info' and parse 'xxx' * bugfix: do not use select in cluster. see #131 * add http.profile = -1 to exit RedisShake once finish restoring RDB * polish conf * bugfix: source.parallel doesn't work * release v1.6.14 * release v1.6.14 2 * release v1.6.14 3 * remove the cluster limit when target type is rump2 * supports twemproxy * add limit judge when target type is cluster * release v1.6.15 * bugfix: big key in rump all expired * release v1.6.16 * test circleci * test circleci2 * test circleci3 * test circleci4 * test circleci5 * test circleci6 * test circleci7 * test circleci8 * test circleci9 * update redis-go-cluster driver * transaction syncing panic when target redis is cluster. see #145 * set sender count to 4096 if target redis type is cluster * set max sender.count to 4096 if target redis type is cluster * add more debug in rdb restore * adjust RecvChanSize based on 'sender.count' or 'scan.key_number' if target redis type is cluster * fix wrong character * remove some useless variables in conf * remove some useless variables in conf2 * update redis-go-cluster driver * transaction syncing panic when target redis is cluster. see #145 * set sender count to 4096 if target redis type is cluster * set max sender.count to 4096 if target redis type is cluster * add more debug in rdb restore * adjust RecvChanSize based on 'sender.count' or 'scan.key_number' if target redis type is cluster * remove some useless variables in conf * remove some useless variables in conf2 * print inner error message from redigo driver return message * print inner error message from redigo driver return message2 * polish conf * debug zset panic * add debug log * release v1.6.17 * release v1.6.17 2 * cluster restore quick list panic * cluster restore quick list panic, see #156 * add contributor in README * add windows binary * update start.sh * change utils.LogLevelAll to utils.LogLevelDebug when print debug log * update cluster driver to throw error from RESP * update start script to only run hypervisor when type == sync * release v1.6.19 * format full-sync RDB size * add company mark * add dingding group * add CI/CD, not finish * add standalone script * add some scripts
5 years ago
#!/bin/bash
if [ "Linux" != "$(uname -s)" ];then
echo "only support Linux"
exit -1
fi
set -o errexit
# run unit test
curPath=$(cd "$(dirname "$0")"; pwd)
export GOPATH=$curPath/..
cd $curPath/../src/redis-shake
go test -tags integration ./...
if [ $? -ne 0 ]; then
echo "run ut failed"
else
echo "run ut successfully"
fi
# run integration test
cd $curPath