summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2013-07-10 13:05:08 -0400
committerMathias Stearn <mathias@10gen.com>2013-07-10 17:17:59 -0400
commitb6d259180642b0bb3296928ad4d6740e63ac30bf (patch)
tree8193cc00398b8c73d4d31525cc93ba9b803c0817
parent866c02716a21da7e0568569c5f7f96bbbab8cce7 (diff)
downloadmongo-b6d259180642b0bb3296928ad4d6740e63ac30bf.tar.gz
Enable test for SERVER-4534
It was fixed when index building switched to using the new Sorter.
-rw-r--r--jstests/slowNightly/huge_multikey_index.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/jstests/slowNightly/huge_multikey_index.js b/jstests/slowNightly/huge_multikey_index.js
index 322c47aa398..c646fc8c127 100644
--- a/jstests/slowNightly/huge_multikey_index.js
+++ b/jstests/slowNightly/huge_multikey_index.js
@@ -1,4 +1,6 @@
// https://jira.mongodb.org/browse/SERVER-4534
+// Building an index in the forground on a field with a large array and few documents in
+// the collection used to open too many files and crash the server.
t = db.huge_multikey_index
t.drop()
@@ -9,9 +11,9 @@ function doit() {
t.insert({a:arr})
- //t.ensureIndex({a:1}, {background:true}) // works!
+ //t.ensureIndex({a:1}, {background:true}) // always worked
- t.ensureIndex({a:1}) // boom!
+ t.ensureIndex({a:1}) // used to fail server with out of fds error
}
-// doit(); // SERVER-4534
+doit();