Revert the revert of "Upgrade to Mongo 3.6 (#9533)"

This reverts commit 85d74f8d2b.
This commit is contained in:
Hugh Willson
2018-02-01 12:22:04 -05:00
committed by Jesse Rosenberger
parent 5fba1fd3e2
commit 542ad06b75
8 changed files with 32 additions and 20 deletions

View File

@@ -447,6 +447,10 @@
[Issue #5127](https://github.com/meteor/meteor/issues/5127)
[PR #9512](https://github.com/meteor/meteor/pull/9512)
* Mongo has been upgraded to version 3.6.2 for 64-bit OS', and 3.2.18 for
32-bit OS'.
[PR #9533](https://github.com/meteor/meteor/pull/9533)
## v1.6.0.1, 2017-12-08
* Node has been upgraded to version

View File

@@ -32,14 +32,14 @@
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
},
"mongodb": {
"version": "2.2.33",
"resolved": "https://registry.npmjs.org/mongodb/-/mongodb-2.2.33.tgz",
"integrity": "sha1-tTfEcdNKZlG0jzb9vyl1A0Dgi1A="
"version": "2.2.34",
"resolved": "https://registry.npmjs.org/mongodb/-/mongodb-2.2.34.tgz",
"integrity": "sha1-o09Zu+thdUrsQy3nLD/iFSakTBo="
},
"mongodb-core": {
"version": "2.1.17",
"resolved": "https://registry.npmjs.org/mongodb-core/-/mongodb-core-2.1.17.tgz",
"integrity": "sha1-pBizN6FKFJkPtRC5I97mqBMXPfg="
"version": "2.1.18",
"resolved": "https://registry.npmjs.org/mongodb-core/-/mongodb-core-2.1.18.tgz",
"integrity": "sha1-TEYTm986HwMt7ZHbSfOO7AFlkFA="
},
"process-nextick-args": {
"version": "1.0.7",

View File

@@ -3,12 +3,12 @@
Package.describe({
summary: "Wrapper around the mongo npm package",
version: "2.2.33",
version: "2.2.34",
documentation: null
});
Npm.depends({
mongodb: "2.2.33"
mongodb: "2.2.34"
});
Package.onUse(function (api) {

View File

@@ -7,8 +7,8 @@
require 'tmpdir'
mongo_install_urls = {
"3.4.9" => "https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-3.4.9.tgz",
"3.2.15" => "https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-3.2.15.tgz",
"3.6.2" => "https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-3.6.2.tgz",
"3.2.18" => "https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-3.2.15.tgz",
"3.0.5" => "https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-3.0.5.tgz",
"2.6.10" => "http://downloads.mongodb.org/osx/mongodb-osx-x86_64-2.6.10.tgz"
}
@@ -29,7 +29,7 @@ puts "Putting output in: #{path_to_output}/"
test_env = "TEST_PACKAGES_EXCLUDE=\"less\""
["3.4.9", "3.2.15", "3.0.5", "2.6.10"].each do |mongo_version|
["3.6.2", "3.2.18", "3.0.5", "2.6.10"].each do |mongo_version|
puts "Installing and testing with Mongo #{mongo_version}..."
Dir.mktmpdir "mongo_install" do |mongo_install_dir|

View File

@@ -6,8 +6,8 @@ set -u
UNAME=$(uname)
ARCH=$(uname -m)
NODE_VERSION=8.9.4
MONGO_VERSION_64BIT=3.4.10
MONGO_VERSION_32BIT=3.2.15
MONGO_VERSION_64BIT=3.6.2
MONGO_VERSION_32BIT=3.2.18
NPM_VERSION=5.6.0
# If we built Node from source on Jenkins, this is the build number.

View File

@@ -219,11 +219,11 @@ Function Add-NodeAndNpm {
}
Function Add-Mongo {
# Mongo 3.4 no longer supports 32-bit (x86) architectures, so we package
# the latest 3.2 version of Mongo for those builds and 3.4+ for x64.
# Mongo >= 3.4 no longer supports 32-bit (x86) architectures, so we package
# the latest 3.2 version of Mongo for those builds and >= 3.4 for x64.
$mongo_filenames = @{
windows_x86 = "mongodb-win32-i386-${MONGO_VERSION_32BIT}"
windows_x64 = "mongodb-win32-x86_64-2008plus-${MONGO_VERSION_64BIT}"
windows_x64 = "mongodb-win32-x86_64-2008plus-ssl-${MONGO_VERSION_64BIT}"
}
$previousCwd = $PWD

View File

@@ -49,11 +49,22 @@ extractNodeFromTarGz || downloadNodeFromS3 || downloadOfficialNode
# by default. Will download a 32-bit version of Mongo if using a 32-bit based
# OS.
MONGO_VERSION=$MONGO_VERSION_64BIT
MONGO_SSL="-ssl"
# The MongoDB "Generic" Linux option is not offered with SSL, which is reserved
# for named distributions. This works out better since the SSL support adds
# size to the dev bundle though isn't necessary for local development.
if [ $UNAME = "Linux" ]; then
MONGO_SSL=""
fi
if [ $ARCH = "i686" ]; then
MONGO_VERSION=$MONGO_VERSION_32BIT
fi
MONGO_NAME="mongodb-${OS}-${ARCH}-${MONGO_VERSION}"
MONGO_TGZ="${MONGO_NAME}.tgz"
MONGO_NAME_SSL="mongodb-${OS}${MONGO_SSL}-${ARCH}-${MONGO_VERSION}"
MONGO_TGZ="${MONGO_NAME_SSL}.tgz"
MONGO_URL="http://fastdl.mongodb.org/${OS}/${MONGO_TGZ}"
echo "Downloading Mongo from ${MONGO_URL}"
curl "${MONGO_URL}" | tar zx

View File

@@ -61,9 +61,6 @@ function spawnMongod(mongodPath, port, dbPath, replSetName) {
// Use mmapv1 on 32bit platforms, as our binary doesn't support WT
if (process.arch === 'ia32') {
args.push('--storageEngine', 'mmapv1', '--smallfiles');
} else {
// The WT journal seems to be at least 300MB, which is just too much
args.push('--nojournal');
}
return child_process.spawn(mongodPath, args, {