使用Mongodb导入问题:致命错误:MSpanList_Insert

时间:2017-03-24 19:38:28

标签: mongodb go macos-sierra

当我尝试使用Mongodb 3.3.9导入时,我遇到了致命的错误。我的脚本以前工作过,但当我将我的Mac操作系统升级到Sierra时,我遇到了看起来像Go语言的问题。

收到错误:

致命错误:MSpanList_Insert

  

运行时堆栈:runtime.MSpanList_Insert(0x491d30,0x54daf0)     /usr/local/go/src/runtime/mheap.c:692 + 0x8f   runtime.MHeap_Alloc(0x491cc0,0x2,0x10000000026,0xdbc9)     /usr/local/go/src/runtime/mheap.c:240 + 0x66   runtime.MCentral_CacheSpan(0x49b0b8,0x34872)     /usr/local/go/src/runtime/mcentral.c:85 + 0x167   runtime.MCache_Refill(0x527c20,0xc200000026,0x5550b8)     /usr/local/go/src/runtime/mcache.c:90 + 0xa0

其他人已经注意到一个类似的问题应该在早期版本(mongorestore random crash (fatal error))中得到解决,但我的问题仍然存在。

1 个答案:

答案 0 :(得分:1)

正如评论建议的那样,它解决了重新安装mongo的问题。如果您使用brew uninstall mongo执行安装:which mongo #now you have a path rm -rf yourMongoPath

如果您只是按照教程中的步骤操作,只需删除可执行文件即可。如果您不知道如何操作,请按照以下步骤操作:

Declare @PayDate date = '2017-08-31'

Select DateFromParts(Year(@PayDate)+IIF(Month(@PayDate)>3,1,0),3,31)