Hi @sindhu_K,
Did you make two upgrades or did you start directly from 4.4?
Because it seems as if you did two upgrades so from 4.2 to 4.4 without doing the setFeatureCompatibility.
If you use the get, it will give you info on which one you stayed with.
Have you started the MongoDB process with version 5.0? You can verify with "db.version() and see if it’s running as v5.0 or 4.4.
The FCV doesn’t upgrade MongoDB, it just enables features for a certain release and helps with backwards compatibility. You don’t want to change the FCV until all the nodes are upgraded to 5.0.
Then you will want to follow this link on the upgrade process. As mentioned you will need to completely upgrade the MongoDB servers first then change the FCV value on the cluster.