I have a replica set of 4 members. 1 primary, 1 arbiter, 1 secondary, and another one that should be secondary, but have issues and is not connected. (in a "connecting..." state).
When the unconnected member is part of the replica set, i get errors in the other members:
from the server mongo log:
[LogicalSessionCacheRefresh] Failed to refresh session cache: WriteConcernFailed: waiting for replication timed out; Error details: { wtimeout: true }
command config.$cmd command: update { update: "system.sessions", ordered: false, allowImplicitCollectionCreation: false, writeConcern: { w: "majority", wtimeout: 15000 }, $db: "config" } numYi elds:0 reslen:782 locks:{ Global: { acquireCount: { r: 208, w: 208 } }, Database: { acquireCount: { w: 208 } }, Collection: { acquireCount: { w: 208 } } } protocol:op_msg 15030ms
the write concern settings are: w : 1.0, and timeout 0. but, "writeConcernMajorityJournalDefault" is set to true
When i remove that member from the replica, the errors disappear.
I dont understand, the write concern is set to w:1, so how do i get a timeout? Even if it was "majority", my secondary and primary are up, so i have 2/3 servers up, why would i get a timeout?
I understand that i get a timeout error because one of the members is down, i just not really understand why.
thanks!