Giter Site home page Giter Site logo

Comments (5)

chicliz avatar chicliz commented on May 7, 2024

您好,gaea-cc在prepare之前会调用namespace.Verify()检查配置, 如果提交不存在的分片类型,会在verify阶段返回错误,prepare和commit不会继续进行.

from gaea.

chicliz avatar chicliz commented on May 7, 2024

您的gaea-cc使用的是什么版本的呢

from gaea.

minxinqing avatar minxinqing commented on May 7, 2024

您的gaea-cc使用的是什么版本的呢

尴尬,用的shazam,自定义了分片类型;刚看了下gaea的代码,的确有verify动作(shazam的verify是空的),在这个场景下不会有问题,但不考虑prepare接口的结果还是会有风险的。

from gaea.

minxinqing avatar minxinqing commented on May 7, 2024

我们现在是有几个项目都用shazam作为分片中间件,有的项目要自定义新的分片规则,就需要做二次开发,但是之前的项目因为用不到新的分片规则,所以就想不更新proxy,但是cc用的都是同一个,好管理,昨天测试的时候就发现这个二段提交的问题,老的proxy在接收cc提交的新分片规则请求的时候导致进程崩溃。

from gaea.

chicliz avatar chicliz commented on May 7, 2024

嗯嗯, 处理prepare接口返回错误确实非常有必要,这样即使没有verify或者各proxy不一致的情况都可以兼容, 感谢您的建议!

from gaea.

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.