pymongo_inmemory icon indicating copy to clipboard operation
pymongo_inmemory copied to clipboard

storageEngine ephemeralForTest is removed since MongoDB 7.0

Open smeng9 opened this issue 5 months ago • 0 comments

Describe the bug A clear and concise description of what the bug is.

MongoDB 7.0 removes the storage engine, and the default settings no longer work. We should treat versions >= 7 differently

To Reproduce Steps to reproduce the behavior:

  1. Command list
  2. See error

>>> from pymongo_inmemory import MongoClient >>> m = MongoClient()

Expected behavior A clear and concise description of what you expected to happen.

I expect my client can connect without a problem

Logs If applicable, add any kind of collected logs to help us understand the problem.

pymongo.errors.ServerSelectionTimeoutError: 127.0.0.1:27017: [Errno 61] Connection refused (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms), Timeout: 30s, Topology Description: <TopologyDescription id: 66f6ef8e519adcdf8ccb2bef, topology_type: Unknown, servers: [<ServerDescription ('127.0.0.1', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('127.0.0.1:27017: [Errno 61] Connection refused (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)')>]>

Screenshots If logs are not applicable, add screenshots.

Context:

  • OS: macOS
  • Version of pymongo_inmemory 0.4.2
  • Version of mongo you are downloading 7.0
  • Any other additional information about context

smeng9 avatar Sep 27 '24 17:09 smeng9