diff options
author | Randolph Tan <randolph@10gen.com> | 2017-10-03 13:25:40 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2017-10-04 16:43:58 -0400 |
commit | d6267ee66b997af73fcfb095f03f655bb61c06dc (patch) | |
tree | 9965b859ffce81a5d8cf109bef09eed2f8781eb5 /src/mongo | |
parent | 8e53b1bef72623c033fa8da1f39f05ff06ddc118 (diff) | |
download | mongo-d6267ee66b997af73fcfb095f03f655bb61c06dc.tar.gz |
SERVER-31367 Ignore _getNextSessionMods CommandNotFound errors
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/db/s/session_catalog_migration_destination.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/s/session_catalog_migration_destination.cpp b/src/mongo/db/s/session_catalog_migration_destination.cpp index b1b373f17c5..6f6865d5f15 100644 --- a/src/mongo/db/s/session_catalog_migration_destination.cpp +++ b/src/mongo/db/s/session_catalog_migration_destination.cpp @@ -428,6 +428,13 @@ void SessionCatalogMigrationDestination::_retrieveSessionStateFromSource(Service continue; } + if (excep.code() == ErrorCodes::CommandNotFound) { + // TODO: remove this after v3.7. + // This means that the donor shard is running at an older version so it is safe + // to just end this because there is no session information to transfer. + break; + } + _errorOccurred(excep.toString()); return; } |