| 1. start mongod:
mongod --setParameter localLogicalSessionTimeoutMinutes=1 --setParameter logicalSessionRefreshMillis=1000
|
the logicalSessionRefreshMillis is overriden to force index recreation sooner than default Refresh interval of 5 min
The log will show
|
[LogicalSessionCacheRefresh] Failed to refresh session cache: Location13111: wrong type for field (expireAfterSeconds) long != int
|
verify that the timeout did not change:
use confg
|
db.system.sessions.getIndexes()
|
verify that the {expireAfterSecods}} value in {lsidTTLIndex}} is 1800. While its expected to be 60 with the new value of the parameter.
|