Commit Graph

1171 Commits

Author SHA1 Message Date
Spencer T Brody
b3a25600cd Don't store 'max' field on collection creation if that field is undefined. 2011-12-06 11:17:16 -05:00
Spencer T Brody
8a67b153d7 Fix some tests that use benchRun to work with auth 2011-12-05 15:25:36 -05:00
agirbal
81b965f966 made timeout test more verbose, and increased timeout mr_bench 2011-12-05 12:23:35 -08:00
Eric Milkie
35f1a722c8 escape all embedded quotes in Windows command line parameters
This allows us to activate dumprestore7 test on Windows, since it spawns a
command with embedded double quotes in the parameter list.
2011-12-02 10:30:50 -05:00
agirbal
a1657326bf SERVER-4382: added timing test for MR 2011-11-29 18:41:26 -08:00
Tad Marshall
94602bb066 SERVER-4006 -- remove duplicates from autocomplete list
The logic comes up with three ways that "prototype" could be a
completion for a function name followed by a period, so just make
sure that we end up with only one in the final list.  Also, convert
tabs to spaces and fix up for code style in shellAutocomplete().
2011-11-28 14:43:21 -05:00
Tad Marshall
e5a54592f1 SERVER-4052 -- case-insensitive command completion in the shell
Provide command completions for partially typed commands without
requiring case-correctness in the partially typed command.  The
completion (replacement) text is always case-correct, it's just
the to-be-replaced text that is now case-insensitive.
2011-11-28 12:29:24 -05:00
Tad Marshall
18fb262f9e SERVER-2837 -- be more friendly to piping in the shell
Don't print 'bye' on exit when --quiet is set.
2011-11-28 00:16:36 -05:00
Tad Marshall
2cad4df74d SERVER-3998 -- enable the shell's edit command in Windows
Make the mongo shell's 'edit' command work in Windows.  Change
the code to use C file stream functions instead of Unix low level
IO (fopen instead of open), close and reopen the file so there are
fewer OS dependencies, delete (remove()) the file ourselves where
needed.  Also, remove #ifdefs are are now constant (USE_LINENOISE,
USE_TABCOMPLETION) and the unused code they supported, and try to
get the entire source file to adhere to the kernel code style.
2011-11-27 09:51:40 -05:00
Eric Milkie
9a1d95efb4 when CreateProcess fails, show the reason why 2011-11-22 16:49:20 -05:00
Tad Marshall
c67b01be01 SERVER-4304 -- Generate .CPP files from JavaScript in Visual Studio
We no longer need mongo_vstudio.cpp and it is removed from the Git
repository with this commit.  Visual Studio 2010 will now generate its
own copies of shell/mongo.cpp and shell/mongo-server.cpp.  The code
that creates these files closely mimics the jsToH function in SConstruct
such that the resulting files are identical (quirks and all).
SConstruct no longer creates shell/mongo_vstudio.cpp and Visual Studio
creates and uses the same filename as SCons (shell/mongo.cpp).  All
projects that were using mongo_vstudio.cpp will now instead generate
shell/mongo.cpp as a "Pre-Build" step.
2011-11-19 22:49:37 -05:00
Tad Marshall
05717037fb SERVER-3470 -- store multi-line commands in history
Convert newlines to spaces and store the entire multi-line command instead
of just the line that began the command.  Fix initial cap in error message.
2011-11-18 13:26:05 -05:00
agirbal
c49a08db09 replica set tests did not clean up the data folder due to bug 2011-11-17 16:51:05 -08:00
Tad Marshall
7c8ac68bce SERVER-4298 -- minor cleanup to db.help() output
Remove the duplicate db.getMongo().setSlaveOk() help line from db.help()
(I kept the one with the more terse text), remove an extraneous space
from the end of db.getProfilingStatus(), sort the lines alphabetically.
2011-11-17 05:41:59 -05:00
Tad Marshall
8d8b272225 SERVER-4008 -- don't leak memory in the shell
Track the strdup-ed (i.e. malloc-ed) strings returned by linenoise, and
free the memory when we are done with it. Free command line history
memory explicitly when we save the history to a file and stop using it.
Non-Windows versions were freeing this memory using an atexit handler,
but this handler isn't set up for Windows.
2011-11-16 13:07:37 -05:00
dwight
1306fee268 fix warning 2011-11-15 13:17:20 -05:00
Scott Hernandez
7e14b578ff SERVER-2370: more shell help 2011-11-15 11:38:03 -05:00
Kristina
2009565604 Handle auth in C++, not JS SERVER-4241 2011-11-14 17:53:54 -05:00
Spencer T Brody
408a7cec5e Fix authentication handling for parallel shell. 2011-11-14 11:32:34 -05:00
Brandon Diamond
e58ca1a720 SERVER-4176: Added shell help for new behavior 2011-11-14 10:57:41 -05:00
Kristina
03f105bd89 Make fsync lock/unlock helpers use this 2011-11-11 12:13:13 -05:00
Kristina
437a7cc46a Make currentOp and killOp work with multi-db tests 2011-11-11 11:56:52 -05:00
Spencer T Brody
ea662bee62 Don't add admin user for mongod in auth test if its a part of a replica set 2011-11-10 23:13:11 -05:00
Spencer T Brody
7b92494060 If restarting an array of nodes, authenticate to that every node in the array. 2011-11-10 22:27:37 -05:00
Spencer T Brody
7d69c49e97 Use MongoRunner to start new mongoses for tests. 2011-11-10 20:46:03 -05:00
Kristina
3bbe355757 Fix db check for parallel shell 2011-11-10 16:56:26 -05:00
dwight
e8c780f22d mongoperf 2011-11-10 15:15:54 -05:00
Kristina
1b8a09bc33 Much cleaner handling of parallel shell args 2011-11-10 15:27:54 -05:00
Kristina
20e0643c1a Allow parallel shell to authenticate 2011-11-10 13:47:07 -05:00
Spencer T Brody
1624e05909 Start standalone mongod's with --keyFile for auth tests in case that mongod is added to a shard or replSet later. 2011-11-10 13:29:52 -05:00
gregs
df07b8f53c fix for helper function getChunkDistribution() 2011-11-10 11:09:13 -05:00
Spencer T Brody
f2d426df70 Enable running our full js test suite with authentication. SERVER-4237. 2011-11-09 18:06:10 -05:00
Tony Hannan
98314e257e SERVER-4122: "*" is a valid dbname. make mongodump use "" instead of "*" to represent all dbs -- "" is not a valid dbname. Also make shell "use" command accept "*" or any other special char as dbname 2011-11-03 20:17:56 -04:00
gregs
7a4e3bca9e allow setting nopreallocj in ShardingTest directly 2011-11-03 15:50:46 -04:00
dwight
bef479c22e crlf 2011-11-02 19:26:29 -04:00
Eliot Horowitz
26e54bc695 update windows shell 2011-11-02 01:34:33 -04:00
gregs
72e20613b6 buildbot auto2.js log shouldMigrate and allow waiting for balancer 2011-11-01 10:12:11 -04:00
Eliot
751896bafd Merge pull request #122 from tadmarshall/SERVER-3771-part-1-reissue-2
SERVER-3771 -- part 1 (reissue 2) -- don't let 'prompt' become undefined
2011-10-31 21:10:11 -07:00
Brandon Diamond
83e830d42a SERVER-4176: Usability improvement for update() 2011-10-31 11:02:06 -04:00
dwight
34ee7fc118 update vcxproj shell 2011-10-31 10:00:59 -04:00
dwight
50b4d51738 tweak better error msg 2011-10-31 10:00:47 -04:00
gregs
204f1999bf allow lookup of index of config server in ShardingTest 2011-10-31 09:28:59 -04:00
Brandon Diamond
f9a94a82e8 SERVER-4113: shell validation to avoid "*" db name 2011-10-28 11:39:07 -04:00
dwight
dae93e9262 compile 2011-10-28 09:43:41 -04:00
gregs
76b41b888c use curr collection not coll var when printing shard chunks 2011-10-26 10:45:09 -04:00
Eliot Horowitz
bc5547483a updated windows file 2011-10-26 03:42:19 -04:00
gregs
a7bf027f51 fixes for bench testing and tracking of open mongods 2011-10-25 19:19:23 -04:00
gregs
01a0610e69 jsTest namespace 2011-10-25 16:16:53 -04:00
gregs
c8ae2c6c56 add isStopped function 2011-10-25 16:11:24 -04:00
Brandon Diamond
b92b87505a SERVER-4132: shell prompt now includes repset name 2011-10-25 16:00:04 -04:00