|
During an initial sync, due to the way the collection catalogs are gleaned from the sync source, it is difficult to always accurately reflect the collection catalog at the time a given op was generated on the primary, at op application time.
Therefore, we must take extra steps to handle possible errors generated from certain ops that depend on accurate collection metadata. Some examples include collMod, createIndex, dropIndex, and createCollection.
For certain errors, we must ignore the error and subsequently ensure that another specific metadata operation is seen in the oplog stream before reaching minValid.
|