-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
ALL
-
Server Serverless 2023-05-29
confusingly, checkIfCanReadOrBlock is called for a write, which calls into TenantMigrationRecipientAccessBlocker::getCanReadFuture and responds with a ErrorCodes::SnapshotTooOld error code is blocked: https://github.com/10gen/mongo/blob/0a544ab77317cdac47f7239fb251f8256dbbba63/src/mongo/db/repl/tenant_migration_recipient_access_blocker.cpp#L111-L119
additionally, the message states that a Tenant read is blocked, when this can happen for a write.
at the bare minimum, we should switch out the current error code for something more correct and also consider updating the message, updating the names of these methods, and/or adding a comment(s) to clarify that this can be invoked for writes as well.