Importing to CosmosDB MongoDB API using mongorestore fails with retryable writes error

前端 未结 2 746
一向
一向 2021-01-21 16:01

I\'m trying to export and import data from an old MongoDB database server to Azure CosmosDB with MongoDB API using mongodump and mongorestore. But i\'m having issues with the co

2条回答
  •  别那么骄傲
    2021-01-21 16:45

    You can try a version of mongorestore that shipped with MongoDB 3.4. This may not be able to read recent dumps though.

    The ismaster output you provided includes:

    logicalSessionTimeoutMinutes: 30

    This advertises session support but https://docs.microsoft.com/en-us/azure/cosmos-db/mongodb-feature-support-36 says cosmosdb does not support sessions.

    CosmosDB is advertising support for a feature it does not implement, the tooling then (correctly) attempts to use it. This is a bug in cosmosdb.

提交回复
热议问题