mongorestore随机崩溃(严重错误) [英] mongorestore random crash (fatal error)

查看:253
本文介绍了mongorestore随机崩溃(严重错误)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在macOS 10.12上.

I'm on macOS 10.12.

mongod --version
db version v3.2.8
git version: ed70e33130c977bda0024c125b56d159573dbaf0
OpenSSL version: OpenSSL 1.0.2h  3 May 2016
allocator: system
modules: none
build environment:
    distarch: x86_64
    target_arch: x86_64

当我使用mongorestore时:

When I use a mongorestore:

mongorestore --drop --db mydatabase /path/to/mongodump

开始导入,但它会导致90%的时间崩溃:

The import starts but it crashes 90% of time:

fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0x697d5fa61ae3 pc=0x40d9e00]

goroutine 46 [running]:
runtime.throw(0x4683ea0, 0x2a)
    /usr/local/Cellar/go/1.6.2/libexec/src/runtime/panic.go:547 +0x90 fp=0xc822235790 sp=0xc822235778
runtime.sigpanic()
    /usr/local/Cellar/go/1.6.2/libexec/src/runtime/sigpanic_unix.go:12 +0x5a fp=0xc8222357e0 sp=0xc822235790
sync.(*Pool).Get(0x4c00390, 0x0, 0x0)
    /usr/local/Cellar/go/1.6.2/libexec/src/sync/pool.go:102 +0x40 fp=0xc822235830 sp=0xc8222357e0
fmt.newPrinter(0x10)
    /usr/local/Cellar/go/1.6.2/libexec/src/fmt/print.go:133 +0x27 fp=0xc822235870 sp=0xc822235830
fmt.Fprintf(0x55043f8, 0xc820026018, 0x45cda88, 0x6, 0xc822235968, 0x2, 0x2, 0xc82007e3f0, 0x0, 0x0)
    /usr/local/Cellar/go/1.6.2/libexec/src/fmt/print.go:187 +0x30 fp=0xc8222358b8 sp=0xc822235870
github.com/mongodb/mongo-tools/common/log.(*ToolLogger).log(0xc8200145a0, 0xc82007e3f0, 0x8a)
    /private/tmp/mongodb-20160713-59015-85tgmi/mongodb-src-r3.2.8/src/github.com/mongodb/mongo-tools/.gopath/src/github.com/mongodb/mongo-tools/common/log/tool_logger.go:84 +0x20e fp=0xc822235990 sp=0xc8222358b8

... (real log is very long)

它特定于我的操作系统吗?

Is it specific to my OS ?

谢谢.

推荐答案

我可以确认这确实是操作系统更新的一部分,并且也遇到了同样的问题.我目前正在深入研究,如果发现任何问题,我会通知您!

I can confirm that it is definitely something with the OS as I have updated and am running into this same exact issue as well. I am currently digging into it, if I find anything I will let you know!

更新:

在进行了一些调查之后,似乎它与MongoDB使用的Go依赖关系有关.当前,MongoDB正在使用v1.4.2.事实证明,在macOS Sierra上旧版本的Go出现问题. https://github.com/golang/go/issues/16570 解释说该问题已通过v1解决. 7除非有一种方法可以让MongoDB指向Go v1.7,否则我不确定在MongoDB升级其依赖项之前是否可以解决.

After doing some investigating it seems that it has to do with the Go dependency that MongoDB uses. Currently MongoDB is using v1.4.2. Turns out that there are problems with older versions of Go on macOS Sierra. https://github.com/golang/go/issues/16570 explains that the issue is resolved with v1.7. Unless there is a way that you can have MongoDB point to Go v1.7 I am not sure if this will be resolved until MongoDB upgrades their dependencies.

更新2: 我打算向MongoDB提交与该问题有关的错误,直到偶然发现此问题为止. https://jira.mongodb .org/browse/TOOLS-1450 .看来MongoDB 3.2.10将使用Go v1.7,并且应该解决您和我看到的问题.

UPDATE 2: I was planning to file a bug with MongoDB relating to the issue until I stumbled onto this... https://jira.mongodb.org/browse/TOOLS-1450. It seems that MongoDB 3.2.10 will use Go v1.7 and should fix the issues that you and I are seeing.

这篇关于mongorestore随机崩溃(严重错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆