Comments (2)
问题原因:master和slave建立连接,第一次evalsha会转成eval携带script信息,但是如果是从slave上拉取,那么slave本身没办法把evalsha转换eval,所以就有了这个问题。这个本身在redis级联场景也会遇到这个问题,lua脚本如果不存在需要客户端的处理逻辑介入重新load。
解决方式:
- 要么从master上拉取,
- 要么自己把lua脚本同步到目的端,
- 或者统一都启用redis.replicate_commands()转成事务。
from redisshake.
对于redis自身级联场景,如果是4.0.4之前是有这个问题,但是4.0.4之后由于rdb中携带lua脚本信息,所以没有这个问题。
总结一下:这个问题是redis自身机制造成的,而不是redis-shake。
from redisshake.
Related Issues (20)
- loacl cursor=‘0’ redis.call('SCAN') HOT 1
- 源集群节点版本不一致报错 HOT 1
- unknown rdb value type byte. key=[], type=[200] HOT 9
- 同步过程,源端三个master节点内存占用一直涨,涨了差不多20G还在涨
- 同步数据太慢 HOT 3
- Overwriting Keys Issue HOT 1
- redis-shake 4.0集群之间的同步存在数据丢失的情况,且消耗的性能也比2版本大 HOT 4
- scan同步方式是否会丢失数据 HOT 1
- 数据传输过程中,报[ERR MULTI calls can not be nested] HOT 2
- sync always hand shaking HOT 1
- redis 4.0.14 同步到 6.2.7 数据不一致 HOT 7
- 运行过程中大概有5分钟的时间,read_ops/write_ops都是0,最后任务失败退出 HOT 2
- 自建Redis与云Redis同步异常 HOT 2
- RedisShake 3.1.11 从4.0.11同步到6.0.14,key数量对不上 HOT 2
- RedisShake 4.x支持断点续传吗 HOT 2
- 使用redis-shake做增量数据同步的时候,有很多warn的信息,我不确认会不会因为这些问题导致我数据不一致 HOT 2
- 同步数据较慢 HOT 3
- 通过nat转换进行同步报 i/o timeout HOT 1
- scan_reader模式不能直接同步增量? HOT 3
- can_reader模式同步过程中报:ERR unexpected EOF HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redisshake.