From 98515c812b6fa893613f063dae568ff8319cbfbd Mon Sep 17 00:00:00 2001 From: Eddie Louie Date: Fri, 24 Mar 2017 13:37:32 -0400 Subject: SERVER-28485 Disable implicit shardCollection after drop on OS X --- .../override_methods/implicitly_shard_accessed_collections.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jstests/libs/override_methods/implicitly_shard_accessed_collections.js b/jstests/libs/override_methods/implicitly_shard_accessed_collections.js index a29f68b7323..1fcb31da250 100644 --- a/jstests/libs/override_methods/implicitly_shard_accessed_collections.js +++ b/jstests/libs/override_methods/implicitly_shard_accessed_collections.js @@ -65,9 +65,11 @@ DBCollection.prototype.drop = function() { var dropResult = originalDBCollectionDrop.apply(this, arguments); - // Attempt to enable sharding on database and collection if not already done. - shardCollection(this); - + // TODO: Disable sharding collection on OSX until SERVER-28418 is fixed. + if (this.getDB().serverBuildInfo().buildEnvironment.target_os !== "macOS") { + // Attempt to enable sharding on database and collection if not already done. + shardCollection(this); + } return dropResult; }; }()); -- cgit v1.2.1