File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1032,8 +1032,13 @@ const StringMap<ApplyOpMetadata> kOpsMap = {
1032
1032
opCtx, applicationMode, swOplogEntry.getValue ());
1033
1033
return Status::OK ();
1034
1034
},
1035
+ // These index related error codes needs to be ignored during initial sync because these
1036
+ // indexes can already be cloned during initial sync database cloning and the oplogs become
1037
+ // no-op. During steady state, since DDL oplogs are applied in serial, we should never see
1038
+ // these errors.
1035
1039
{ErrorCodes::IndexAlreadyExists,
1036
1040
ErrorCodes::IndexBuildAlreadyInProgress,
1041
+ ErrorCodes::IndexKeySpecsConflict,
1037
1042
ErrorCodes::NamespaceNotFound}}},
1038
1043
{" commitIndexBuild" ,
1039
1044
{[](OperationContext* opCtx, const ApplierOperation& op, OplogApplication::Mode mode)
You can’t perform that action at this time.
0 commit comments