Mongodb 尝试使用mongorestore还原fs.chunks集合(GridFS)时出现断言异常

Mongodb 尝试使用mongorestore还原fs.chunks集合(GridFS)时出现断言异常,mongodb,gridfs,mongorestore,Mongodb,Gridfs,Mongorestore,mongorestore无法还原包含名为“fs.chunks”(由使用)的集合的转储 看起来此集合中的块太大(~32MB) 你知道如何告诉mongo: 选项1:调整块大小 选项2:接受大于16MB的块 注: Mongo版本:3.1.9 转储是使用mongodump工具生成的 已成功还原所有其他集合 据我所知,在最新版本的mongodb中存在此错误。开发人员建议使用以前版本的mongorestore。在3.0.8版本中,3.2.0-rc1错误将被删除 $ mongorestore <

mongorestore无法还原包含名为“fs.chunks”(由使用)的集合的转储

看起来此集合中的块太大(~32MB)

你知道如何告诉mongo:

  • 选项1:调整块大小
  • 选项2:接受大于16MB的块
注:

  • Mongo版本:3.1.9
  • 转储是使用mongodump工具生成的
  • 已成功还原所有其他集合

据我所知,在最新版本的mongodb中存在此错误。开发人员建议使用以前版本的mongorestore。在3.0.8版本中,3.2.0-rc1错误将被删除

$ mongorestore <exportDataDestination>
...
Failed: my_db.fs.chunks: error restoring from my_dump/my_db/fs.chunks.bson:  insertion error: EOF
015-10-15T17:05:28.766+0000 I -        [conn36] Assertion: 10334:BSONObj size: 33545165 (0x1FFDBCD) is invalid. Size must be between 0 and 16793600(16MB) First element: insert: "fs.chunks"
2015-10-15T17:05:28.772+0000 I CONTROL  [conn36] 0x127b4a2 0x121c0e4 0x1208cd8 0x1208d8c 0x9754db 0xb6cde8 0x9c88bd 0xc63aa5 0xc662c0 0x9528ad 0x1228755 0x7f95c49d4182 0x7f95c470147d
----- BEGIN BACKTRACE -----
...
-----  END BACKTRACE  -----
2015-10-15T17:05:28.773+0000 I NETWORK  [conn36] AssertionException handling request, closing client connection: 10334 BSONObj size: 33545165 (0x1FFDBCD) is invalid. Size must be between 0 and 16793600(16MB) First element: insert: "fs.chunks"