|
spencer.jackson and I talked about this ticket. recoverFromOplogAsStandalone is a setting that opens up WT without passing in readOnly, but then flips the mongod queryableBackupMode option after replication recovery completes. With this patch, the ESE is choosing to read mongod's queryableBackupMode on initialization (still false) and then invarianting queryableBackupMode is false when deciding to increment the GSM (due to writes going to disk). However, the recoverFromOplogAsStandalone logic flips the queryableBackupMode flag between these operations.
We decided to try and change the patch to have the ESE code note whether the server is in read-only mode on initialization and use that value to determine whether to increment the GSM.
|