Commit Graph

852 Commits

Author SHA1 Message Date
Hoai Nam Dao f1c46964c5
typo: fix typo in shake.toml file (#838) 2024-07-30 14:47:59 +08:00
Morse 8e54c49692
fix when prefer_replica set to true, master node is nil (#843)
Co-authored-by: dywang <dywang@moonton.com>
2024-07-19 11:30:27 +08:00
abel 5c11f28694
fix: for cluster node, when prefer_replica set to true can not get best replica (#841) 2024-07-12 09:32:57 +08:00
EquentR 040c64f0d5
fix: switchdb blocking after closing destination reply (#837)
https://github.com/tair-opensource/RedisShake/issues/836
2024-07-01 19:12:52 +08:00
heyone-top 10e20031b1
fix double precision ,module bloomfilter double to string (#830)
* Update module2_struct.go

fix double precision ,module double to string

* Update module2_struct.go

update  float64 precision
2024-06-25 17:13:13 +08:00
suxb201 5e5133dfaa
docs: refine documentation (#831) 2024-06-17 20:19:21 +08:00
blight19 54563987d0
bug fix prefer replica in master-slave mode (#828)
* update else if to switch

* update else if to switch

* 添加动态识别库号

* 性能优化

* 添加scan时候的一次扫描次数控制配置,防止源端cpu高

* rename batch to count

* edit ...string to ...interface

* performance optimization

* fix r.db length is 0

* fix prefer replica bug

* fix prefer replica bug
2024-06-17 10:05:30 +08:00
ATMeno c3694f0cb2
Update the comment of rdb_restore_command_behavior in shake.toml (#825)
There are two inconsistencies in the description of the "rdb_restore_command_behavior" configuration in the [advanced] section when  the developer sees the comment.
2024-06-17 10:02:44 +08:00
blight19 aaeedea48e
reduce source pressure when use scan (#823)
* update else if to switch

* update else if to switch

* 添加动态识别库号

* 性能优化

* 添加scan时候的一次扫描次数控制配置,防止源端cpu高

* rename batch to count

* edit ...string to ...interface

* performance optimization

* fix r.db length is 0
2024-06-13 19:09:30 +08:00
Xiaohan Song 0be518fe64
Support prefer_replica=true in both Cluster and Standalone mode (#821)
* support DEL command in scan_reader

* Support prefer_replica=true in both Cluster and Standalone mode
2024-06-06 19:14:16 +08:00
Xiaohan Song 8402d84421
support DEL command in scan_reader (#820) 2024-06-06 17:54:07 +08:00
jijijijijichild f9316b5dc9
feat: diskless sync (#810) 2024-05-27 16:03:22 +08:00
suxb201 df23dde27a
fix: fix "XADD must be greater than 0-0" (#808) 2024-05-23 17:40:10 +08:00
Mohammad Hewedy 7c75078227
feat: Add support for sentinel writer (#806) 2024-05-23 14:00:54 +08:00
hulk 2c9b94f786
No need to print WARNING message while receiving the null reply (#805)
Currently, the writer will print the warning log if received the null
reply. And it might confusing users since some write commands like the SET
with the NX option will return null reply if the key has already
existed.
2024-05-22 16:54:11 +08:00
suxb201 b3c3352aaf
docs: add more docs (#804) 2024-05-22 14:20:32 +08:00
suxb201 cd735a3b56
feat: improve performance of scan mode (#803)
* feat: improve performance of scan mode

* docs: add more docs and refine doc website
2024-05-22 11:19:14 +08:00
goxiaoy 693c7bca70
bugfix: fix CalcKeys with COMMAND (#797) 2024-05-20 11:28:28 +08:00
hulk 46795d9fa7
Fix dead condidtion in LoadAppendOnlyFile (#792) 2024-04-24 13:33:06 +08:00
blight19 ee110e4cbc
bugfix: Fix ksn bug (#785) 2024-04-01 13:25:31 +08:00
suxb201 21781b9a0d
bugfix: fix error when using txn in cluster mode (#786) 2024-03-27 16:25:49 +08:00
blight19 17a6f0abaf
feature: dynamic Redis source DB recognition & performance improvements(#782)
* update else if to switch

* update else if to switch

* 添加动态识别库号

* 性能优化

* 添加scan时候的一次扫描次数控制配置,防止源端cpu高

* rename batch to count

* edit ...string to ...interface
2024-03-22 10:19:19 +08:00
blight19 d27254c45a
refactor: replace if-else with switch (#777) 2024-03-06 16:12:40 +08:00
suxiaobin.sxb 256dd64d51 bugfix: Add keep-alive to prevent target Redis close conn due to timeout 2024-03-05 19:57:32 +08:00
suxiaobin.sxb 906a5b9f67 feature: Change default value of status_port from 6479 to 0 2024-03-05 19:57:32 +08:00
suxiaobin.sxb 54324834b7 bugfix: Add support for RDB_OPCODE_MODULE_AUX parsing 2024-03-05 19:57:32 +08:00
suxiaobin.sxb 295217fca8 bugfix: Correctly handle SIGINT during handshake 2024-03-05 19:57:32 +08:00
suxiaobin.sxb fef1953098 feature: Add 1s timeout to Redis client connection setup 2024-03-05 19:57:32 +08:00
FrancoZhang 0cf0af0741
Update listpack.go (#769) 2024-02-19 19:13:12 +08:00
vczyh 9527b04b3b
perf(rdb): parse rdb use less memeory (#764)
* perf(rdb): parse rdb use less memeory

* test(rdb): set test

* bugfix: core when parse TairHash and TairZset

* chore: Remove redundant code

---------

Co-authored-by: suxb201 <suxb201@gmail.com>
2024-02-02 09:08:32 +08:00
zgg2001 c5ff14cad7
bugfix: fix panic when sync reader needed to exit (#760) 2024-01-19 11:16:38 +08:00
Nadeshiko Manju 0f374b1f97
refactor: Manage all redis client into `context.Context` (#745)
* refactor: Manage all redis client into `context.Context`

* Update code

---------

Co-authored-by: suxb201 <suxb201@gmail.com>
2024-01-19 09:25:47 +08:00
suxiaobin.sxb 871c0385b3 bugfix: fix stream parsing issue 2024-01-04 18:48:22 +08:00
Nadeshiko Manju 10068d370b
refactor: reuse the lua vm and pr-compile the lua code (#753)
* refactor: reuse the lua vm and pr-compile the lua code

* fix the benchmark code

* update the code
2024-01-02 22:20:28 +08:00
Nadeshiko Manju 0f3a45f51f
chore: Add base benchmark for internal/function (#751)
* chore: Add base benchmark for internal/function

* update comment
2024-01-02 20:13:08 +08:00
Nadeshiko Manju 8406d8d3ab
chore: Add benchmark rdb file (#748)
* chore: Add benchmark rdb file

* chore: Add benchmark rdb file

* chore: Add benchmark rdb file

* chore: Add benchmark rdb file

* chore: Add benchmark rdb file
2024-01-01 21:34:41 +08:00
Nadeshiko Manju 6cf019bfc4
chore: Add base benchmark for rdb parse (#747) 2024-01-01 21:26:46 +08:00
Nadeshiko Manju 4e31b950d6
chore: Fix relate link in code comment (#746) 2024-01-01 20:13:48 +08:00
skyjiang 56abca8417 chroe: polish code according to golangci-lint hint 2023-12-28 20:56:17 +08:00
skyjiang c2aa81769a fix: the address corresponds to the slot 2023-12-27 11:48:59 +08:00
skyjiang 2d30da2b40 add feature about perfer connect to replica node 2023-12-27 11:48:59 +08:00
skyjiang f7d72a2962 support gracefully shutdown 2023-12-26 14:32:45 +08:00
skyjiang 2ff48ca4ee refactor: Refactor the feature of flush db before sync 2023-12-26 14:31:46 +08:00
skyjiang cc935584aa fix: block on flushall cmd when turn off reply 2023-12-26 14:31:46 +08:00
Nadeshiko Manju cbe7e0118a
refactor: Refactor the internal/aof.go (#742)
1. Fix typo for the field and argument name
2. Rename the const field name to match the Go style
2023-12-25 23:16:00 +08:00
suxiaobin.sxb 120fadc0f6 bugfix: Fix CI bugs 2023-12-25 10:32:13 +08:00
suxiaobin.sxb 4e467c2b88 bugfix: Print full stack on panic 2023-12-22 17:34:39 +08:00
suxiaobin.sxb 5a5655186c feature: Optimize space utilization by deleting dump.rdb after migration 2023-12-22 14:32:11 +08:00
suxiaobin.sxb 8127f0a66f chore: Make logs more clear 2023-12-22 14:32:11 +08:00
skyjiang c160449888 support turn off server reply 2023-12-22 14:29:54 +08:00