Giter Club home page Giter Club logo

Comments (2)

vinllen avatar vinllen commented on May 28, 2024

问题原因:master和slave建立连接,第一次evalsha会转成eval携带script信息,但是如果是从slave上拉取,那么slave本身没办法把evalsha转换eval,所以就有了这个问题。这个本身在redis级联场景也会遇到这个问题,lua脚本如果不存在需要客户端的处理逻辑介入重新load。
image
解决方式:

  1. 要么从master上拉取,
  2. 要么自己把lua脚本同步到目的端,
  3. 或者统一都启用redis.replicate_commands()转成事务。

from redisshake.

vinllen avatar vinllen commented on May 28, 2024

对于redis自身级联场景,如果是4.0.4之前是有这个问题,但是4.0.4之后由于rdb中携带lua脚本信息,所以没有这个问题。
总结一下:这个问题是redis自身机制造成的,而不是redis-shake。

from redisshake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.