Giter Club home page Giter Club logo

Comments (12)

vinllen avatar vinllen commented on May 16, 2024

贴一下Mongodb的版本,还有出错的这条Oplog具体内容能够给出吗?_id=5b50014081ab277c676f2f61

from mongoshake.

qiudao767 avatar qiudao767 commented on May 16, 2024

编译go版本 1.10.3, mongodb版本3.0.7
{ "_id" : ObjectId("5b50014081ab277c676f2f61"), "name" : "canyou ok" }

from mongoshake.

qiudao767 avatar qiudao767 commented on May 16, 2024

使用这个版本可以。
commit ed14c55
Author: vinllen [email protected]
Date: Mon Jul 9 11:09:08 2018 +0800
mofidy configuration
配置如下

oplog changes to Insert while Update found non-exist (_id or unique-index)

replayer.executor.upsert = true

oplog changes to Update while Insert found duplicated key (_id or unique-index)

replayer.executor.insert_on_dup_update = false

from mongoshake.

vinllen avatar vinllen commented on May 16, 2024

这个原因是3.0版本的mongodb不支持runCommand写入,在最新合入的代码中我们采用了runCommand写入的方式

from mongoshake.

qiudao767 avatar qiudao767 commented on May 16, 2024

那是否能兼容下3.0的版本呢?

from mongoshake.

vinllen avatar vinllen commented on May 16, 2024

建议升级mongodb到3.2版本以上进行操作。如果非要3.0版本,我评估一下,考虑进行兼容。这两天可能没时间搞了,计划周末或者下周一排期一下。

from mongoshake.

qiudao767 avatar qiudao767 commented on May 16, 2024

目前生产环境都是用3.0的,短期内是没法做升级。希望能够在代码层面做下兼容,谢谢

from mongoshake.

qiudao767 avatar qiudao767 commented on May 16, 2024

兼容mongo 3.0版本有排期吗?

from mongoshake.

vinllen avatar vinllen commented on May 16, 2024

计划7月底之前

from mongoshake.

y123456yz avatar y123456yz commented on May 16, 2024

@vinllen 3.x版本是否已支持

from mongoshake.

vinllen avatar vinllen commented on May 16, 2024

1.2.0版本已发布

from mongoshake.

vinllen avatar vinllen commented on May 16, 2024

此版本已修复,问题我先close了,如果测试发现有问题可以reopen进行反馈。

from mongoshake.

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.