Hi @Sreedhar_N,
For prerequisites and steps for upgrading a replica set from 4.0 to 4.2, please see Upgrade a Replica Set to 4.2 in the MongoDB server documentation.
Since support for the deprecated MMAPv1 storage engine was removed in MongoDB 4.2, upgrading to WiredTiger (default storage engine since MongoDB 3.2) is required before you upgrade:
If your 4.0 deployment uses MMAPv1, you must change the 4.0 deployment to WiredTiger Storage Engine before upgrading to MongoDB 4.2. For details, see Change Replica Set to WiredTiger.
I would remove any MMAP-specific parameters and start with the defaults for WiredTiger unless you have identified specific performance goals or tuning required. I would also thoroughly test with representative data, workloads, and deployment resources in a staging or QA environment so you can identify any changed performance characteristics.
I would strongly consider upgrading to a PSS deployment. For a longer explanation on the consequences of arbiters, please see: Replica set with 3 DB Nodes and 1 Arbiter - #8 by Stennie .
If you prefer to continue with PSA and WiredTiger, please review the PSA 3-member architecture note in the documentation for changing to WiredTiger.
Regards,
Stennie