diff options
Diffstat (limited to 'src/mongo/s/client/sharding_connection_hook.cpp')
-rw-r--r-- | src/mongo/s/client/sharding_connection_hook.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/s/client/sharding_connection_hook.cpp b/src/mongo/s/client/sharding_connection_hook.cpp index bb368f443d1..f1db2092a6f 100644 --- a/src/mongo/s/client/sharding_connection_hook.cpp +++ b/src/mongo/s/client/sharding_connection_hook.cpp @@ -159,6 +159,15 @@ void ShardingConnectionHook::onCreate(DBClientBase* conn) { return; } + // Report a useful error message when we are illegally attempting to connect to 3.4 config + // servers in 3.4 feature compatibility mode. + uassert(ErrorCodes::MustUpgrade, + str::stream() << "Using a 3.2 mongos with a cluster that has " + "featureCompatibilityVersion 3.4 is not a supported " + "configuration. See " + "http://dochub.mongodb.org/core/3.4-feature-compatibility.", + configServerModeNumber < 2); + uassert(28785, str::stream() << "Unrecognized configsvr version number: " << configServerModeNumber << ". Expected either 0 or 1", |