I had a replica set running on MongoDB version 2.6 and upgraded to 3.6 (2.6 -> 3.0 -> 3.2 -> 3.4 -> 3.6).
The cluster is working fine for my normal operations.
rs.result()
...
"ok" : 1
I'm trying to connect a tool that's using MongoDB Java Driver and is getting this error:
Sessions are not supported by the MongoDB cluster to which this client is connected
Might be unrelated but I'm seeing this in my MongoDB server log:
2023-03-03T01:19:44.298+0000 I CONTROL [LogicalSessionCacheReap] Sessions collection is not set up; waiting until next sessions reap interval: config.system.sessions does not exist
When searching about this error, it suggests that replica set hasn't been initialized. But I already have a replica set that I've upgraded from v2.6. I wouldn't want to re-initialize as this existing replica set is in use.
What might be the issue here? and how can I resolve it?