You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See example below for context. Not sure if this is intended behavior or a bug, since forcing a reconnect fixes the issue.
frommaggma.stores.mongolikeimportMongoStorestore=MongoStore(<credentials/etchere>)
store.connect()
store.query_one({}) # This works fine and has no issuesstore.close()
# Since MongoStore.close() does not clear the MongoStore._collection variable, calling connect() does nothingstore.connect()
# This query is fine if SSHTunnels are not in use, since the connection to the DB is # automatically reopened by MongoClient. If SSHTunnel is used, the connection to # the not work, since the SSHTunnel connection was already closedtest_doc=store.query_one({})
# This works, as the connection to the SSHTunnel is re-establishedstore.connect(force_reset=True)
test_doc=store.query_one({})
The text was updated successfully, but these errors were encountered:
See example below for context. Not sure if this is intended behavior or a bug, since forcing a reconnect fixes the issue.
The text was updated successfully, but these errors were encountered: