0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
Commit Graph

419 Commits

Author SHA1 Message Date
Eliot Horowitz
a9e20d2dfd $snapshot in shell SERVER-227 2009-08-11 10:52:20 -04:00
Eliot Horowitz
5025bb7637 beter output for (Min|Max)Key 2009-08-11 04:54:58 -04:00
Aaron Staple
63b8f32e13 Merge branch 'master' of git@github.com:mongodb/mongo 2009-08-11 01:43:03 -04:00
Eliot Horowitz
e44b51ee69 make copyDatabase use admin db automatically SERVER-222 2009-08-10 13:31:48 -04:00
Eliot Horowitz
d4961e1575 fix search on $ref , $id SERVER-223 2009-08-10 11:10:15 -04:00
Eliot Horowitz
71aa2443a3 nicer error reporting 2009-08-10 10:25:43 -04:00
Mike Dirolf
a38fe7f2f2 minor: fix some bugs in arg handling 2009-08-07 16:02:56 -04:00
Mike Dirolf
ee964dcbc9 minor: check if there were any files given 2009-08-07 13:14:50 -04:00
Mike Dirolf
ae3312f1cc towards boost::po - needs testing 2009-08-07 10:43:39 -04:00
Mike Dirolf
e3cefee81d minor: whitespace 2009-08-06 14:15:18 -04:00
Eliot Horowitz
909a6bfd7a fix shutdownServer secutiy check MINOR 2009-08-05 17:05:59 -04:00
Aaron Staple
f76fbbc402 BUG SERVER-184 mode for dropping duplicate records when creating unique index; correct index cache update behavior when createIndex called by ensureIndex fails 2009-08-05 16:02:20 -04:00
Aaron Staple
24a6ae09d7 disable data file preallocation for pairing/repl tests 2009-08-01 14:54:20 -04:00
Eliot Horowitz
8be85b3e48 fix gratuitous slowness in Map (for group) SERVER-189 2009-07-29 14:20:40 -04:00
Eliot Horowitz
b9721f7a1f put .dbshell in $HOME so can read it from anywhere SERVER-190 2009-07-28 11:19:13 -04:00
Eliot Horowitz
9ff7fa1d89 throw an exception if arguments are passed to draopDatabase() 2009-07-23 20:51:01 -04:00
Eliot Horowitz
d6d3ee0e8d mongo usage docs : file names have to end in .js 2009-07-22 16:03:50 -04:00
Mike Dirolf
3e637e9c7c shell cannot insert key names starting with $ or containing . (including embedded documents) 2009-07-21 15:08:45 -04:00
Mike Dirolf
c7b0dcfed3 minor: whitespace 2009-07-21 14:41:23 -04:00
Mike Dirolf
5d3ba187a0 minor: update to use new --arbiter argument 2009-07-13 16:49:02 -04:00
Mike Dirolf
6da11a3453 minor: whitespace 2009-07-13 16:39:02 -04:00
Eliot Horowitz
f1253179ce update vstudio shell files MINOR 2009-07-13 16:37:36 -04:00
Eliot Horowitz
252c621fc3 better error check, and clean shutdownServer message SERVER-152 2009-07-13 16:32:17 -04:00
Eliot Horowitz
c5e353874c " use foo" fix 2009-07-10 14:17:19 -04:00
Eliot Horowitz
a96c97161e make objectid serialize to something parseable 2009-07-06 13:47:00 -04:00
Eliot Horowitz
63251bbe34 fixed some tojson issues 2009-07-01 11:39:51 -04:00
Eliot Horowitz
f9e806bde0 print shell version on startup 2009-06-24 14:53:58 -04:00
Eliot Horowitz
643cfc0888 nice error when trying to save DBQuery 2009-06-24 14:49:50 -04:00
Eliot Horowitz
51d0bcd38b Merge branch 'master' of git@github.com:mongodb/mongo 2009-06-22 09:31:48 -04:00
Eliot Horowitz
7cb14f0951 fix bug with shell helper 2009-06-22 09:31:28 -04:00
Eliot Horowitz
285b43af25 DBQuery.map - aka. db.foo.find().map() 2009-06-20 21:36:35 -04:00
Eliot Horowitz
a4a895e1f0 fix shell printing 2009-06-11 20:27:07 -04:00
Eliot Horowitz
8b6145546a can't use JS eval trick from inside function because of JS scoping 2009-06-11 20:15:31 -04:00
Eliot Horowitz
a38d2d2695 re-implement it in shell 2009-06-08 11:20:30 -04:00
Eliot Horowitz
f17f26a629 update vstudio js code 2009-06-08 10:57:35 -04:00
Eliot Horowitz
d5122c9b90 change Map to use Map.get Map.put Map[] won't work
more tests for group
2009-06-08 10:54:55 -04:00
Eliot Horowitz
5be38d339c assert.lt and assert.gt 2009-06-06 22:53:16 -04:00
Eliot Horowitz
071e9c39a7 .group works on collection as well as db 2009-06-05 10:05:33 -04:00
Eliot Horowitz
d2bbdd7941 BinData for spider monkey SERVER-97 2009-06-05 09:54:35 -04:00
Eliot Horowitz
33181727d2 make collection print in the shell nicely 2009-06-04 17:01:56 -04:00
Eliot Horowitz
ef6a52d21f make assert.eq more strict MINOR 2009-06-04 13:52:36 -04:00
Eliot Horowitz
f3c795db38 findOne should send a hard limit, not a soft limit 2009-06-03 17:04:43 -04:00
Eliot Horowitz
b2defb1b7e db ref for javascript and shell SERVER-46 2009-06-03 13:18:50 -04:00
Eliot Horowitz
01397d2c32 Merge branch 'master' of git@github.com:mongodb/mongo 2009-06-02 08:19:29 -04:00
Eliot Horowitz
dbff105e99 fix "show users" in shell SERVER-87 2009-06-01 16:47:43 -04:00
Eliot Horowitz
921f11c93e docs MINOR 2009-05-30 09:19:47 -04:00
Aaron
8c107408f2 use rawOut() when shell seg faults, log if shell gets SIGPIPE MINOR 2009-05-29 15:56:45 -04:00
Eliot Horowitz
67e827bfcf version() for shell 2009-05-28 17:45:28 -04:00
Aaron
342deb14a9 BUG SERVER-51 change port allocation strategy to hopefully avoid allocating duplicate ports 2009-05-28 16:11:56 -04:00
Aaron
0c2ab274ee protect global undefined_ variable MINOR 2009-05-28 14:43:32 -04:00
Eliot Horowitz
cc15ffda91 get rid of extraneous Map warning MINOR 2009-05-27 15:40:50 -04:00
Eliot Horowitz
f078c67ae9 added countReturn which takes limit and and skip into consideration
SERVER-75
2009-05-27 13:52:17 -04:00
Eliot Horowitz
77dbf16bac killOp and currentOp helpers
SERVER-74
2009-05-26 16:42:21 -04:00
Eliot Horowitz
bb78858156 helper to get mem info of shell process MINOR 2009-05-26 12:05:06 -04:00
Eliot Horowitz
303ac1bd03 print handling of null MINOR 2009-05-21 10:09:38 -04:00
Aaron
eb8b92ab10 Merge branch 'master' of git@github.com:mongodb/mongo 2009-05-20 17:04:38 -04:00
Aaron
5fb0867997 explicitly bind e2e mongod instances to loopback interface 2009-05-20 17:04:28 -04:00
Eliot Horowitz
0bcbdbc3ec some js safety stuff MINOR 2009-05-20 16:43:43 -04:00
Aaron
fe54a96b59 Merge branch 'master' of git@github.com:mongodb/mongo 2009-05-20 15:13:55 -04:00
Aaron
fc428a8885 compile solaris MINOR 2009-05-20 15:11:45 -04:00
Eliot Horowitz
afafd6aee9 Merge branch 'master' of git@github.com:mongodb/mongo 2009-05-20 14:51:25 -04:00
Eliot Horowitz
3cebde86be converToCappend on collection 2009-05-20 14:50:33 -04:00
Aaron
1f6b10d7b3 specify loopback interface when getting port 2009-05-20 14:06:39 -04:00
Aaron
a0a9411bc3 also expect port arg for mongobridge 2009-05-20 13:39:46 -04:00
Aaron
04d6ddd42b handle more non-server programs 2009-05-20 11:29:21 -04:00
Aaron
1d091ef8b3 fix compiler warning MINOR 2009-05-20 10:55:03 -04:00
Aaron
56629ccaad Merge branch 'master' of git@github.com:mongodb/mongo 2009-05-19 13:11:22 -04:00
Aaron
46227a1f42 audit allocated ports to make sure there are no duplicates MINOR 2009-05-19 13:10:56 -04:00
Eliot Horowitz
3a75b466c8 fix shell commands 2009-05-19 11:54:30 -04:00
Eliot Horowitz
c60cf5c1c8 cleaning index accessor methods 2009-05-19 10:54:06 -04:00
Eliot Horowitz
738607b834 some collection admin helper methods 2009-05-16 21:01:56 -04:00
Aaron
d1b49ff9bd get rid of fork() 2009-05-15 16:32:31 -04:00
Aaron
a5969ca86b convert clonecolletion.js test to use spawned shells instead of fork() 2009-05-15 16:24:26 -04:00
Aaron
d0122e2e1a add ability to spawn a shell from shell 2009-05-15 14:55:18 -04:00
Eliot Horowitz
2db1e0ca72 Merge branch 'smshell'
Conflicts:
	jstests/count.js
	scripting/engine_spidermonkey.cpp
2009-05-15 13:10:55 -04:00
Eliot Horowitz
540f479a90 make assert.eq better 2009-05-15 13:03:03 -04:00
Aaron
16d763737d kill spawned mongo processes on synchronous os signal 2009-05-15 11:07:43 -04:00
Aaron
cb97e39f0f cleanup externalSetup modes MINOR 2009-05-15 10:48:14 -04:00
Eliot Horowitz
7030e2b584 Merge branch 'smshell' of git@github.com:mongodb/mongo into smshell 2009-05-14 17:37:48 -04:00
Eliot Horowitz
6a06a6cb3c print shell stuff 2009-05-14 17:37:21 -04:00
Aaron
df9fe97f79 don't exec jsconcatcode for forked contexts, not sure why this is a problem 2009-05-14 17:32:07 -04:00
Eliot Horowitz
c6eaf9c500 fix _id 2009-05-14 16:39:10 -04:00
Eliot Horowitz
c3c8e9238e Merge branch 'smshell' of git@github.com:mongodb/mongo into smshell 2009-05-14 15:16:29 -04:00
Aaron
0edca05e15 port fork() to spidermonkey 2009-05-14 14:40:08 -04:00
Eliot Horowitz
fe9e174bde Math.sigFig 2009-05-14 13:32:14 -04:00
Aaron
c232600f16 set up mongo program scope; debugging MINOR 2009-05-14 13:19:45 -04:00
Aaron
397e5b13e8 port remaining shell util functions except for fork 2009-05-14 11:42:52 -04:00
Aaron
01f3e49668 port quit and allocatePorts 2009-05-14 10:58:28 -04:00
Eliot Horowitz
67d9c8bbde smshell: more utils working, some other fixes 2009-05-13 23:15:59 -04:00
Eliot Horowitz
7ce30a5699 smshell: almost done 2009-05-13 17:53:41 -04:00
Eliot Horowitz
4bf96beb17 Spider Monkey Shell: another checkpoint 2009-05-13 17:27:45 -04:00
Aaron
101f01c591 10 sec timeout to connect to mongod, in case machine is busy MINOR 2009-05-13 17:02:15 -04:00
Eliot Horowitz
18c01987a2 checkpoint for smshell - working except for db 2009-05-13 17:00:02 -04:00
Aaron
cf158ca29a run pair4.js mongod programs in very verbose mode MINOR 2009-05-13 14:54:32 -04:00
Eliot Horowitz
0c65c4a3e2 cached version for visual studio MINOR 2009-05-13 11:19:11 -04:00
Aaron
7e0f926ab9 remove empty dbpath command MINOR 2009-05-12 13:38:05 -04:00
Aaron
a0cffeed61 add emptyDbpath command MINOR 2009-05-12 12:12:00 -04:00
Aaron
89efc0b51d in shell, print() produces json output, output is recorded for test to access, assert.soon accepts timeout parameter, timeout to connect to a mongod is now 5 secs MINOR 2009-05-12 11:19:39 -04:00
Aaron
60ea7cc443 count() in shell takes query 2009-05-11 16:38:15 -04:00
Aaron
bafb23302e merge 2009-05-11 10:50:15 -04:00
Aaron
169f69acee track seen objects in next(), not hasNext() in shell MINOR 2009-05-11 10:46:19 -04:00
Eliot Horowitz
b59cea1ce6 object enumeration fix 2009-05-08 16:57:51 -04:00
Eliot Horowitz
f31e2284e3 remove keySet until i figure out how to do it nicely MINOR 2009-05-06 17:35:52 -04:00
Eliot Horowitz
c4c89013e6 Spider Monkey: insert, jni(1|2|3) work 2009-05-06 16:01:41 -04:00
Eliot Horowitz
8e0ff9805a Spider Monkey: udpate working, other db.eval things 2009-05-06 15:30:05 -04:00
Eliot Horowitz
c83226a08e Spider Monkey: cursor working, find almost done - some refactoring 2009-05-06 11:00:22 -04:00
Eliot Horowitz
c9d8450389 Spider Monkey: framework mostly done now 2009-05-05 17:28:24 -04:00
Eliot Horowitz
77c36b8c37 Spider Monkey: cleaning interaction - now can make real progress 2009-05-05 16:12:36 -04:00
Eliot Horowitz
2cad033fc0 Spider Monkey: cleaning MINOR 2009-05-05 11:02:47 -04:00
Eliot Horowitz
6f329f6694 validation method MINOR 2009-05-05 10:43:38 -04:00
Aaron
2c2c2df901 fix compile warnings MINOR 2009-05-04 18:45:32 -04:00
Aaron
2409174927 convert some shell util functions to new engine interface 2009-05-04 18:28:13 -04:00
Aaron
a4cbf3072f Merge branch 'master' of git@github.com:mongodb/mongo 2009-05-04 17:37:26 -04:00
Aaron
57699cdd9c convert some shell functions to new js engine framework 2009-05-04 17:37:02 -04:00
Eliot Horowitz
4f8664a85c cleaning MINOR 2009-05-04 17:00:37 -04:00
Eliot Horowitz
e535ec014a fix v8 2009-05-04 16:55:40 -04:00
Eliot Horowitz
1a739255bd Spider Monkey: closer to db integration 2009-05-04 16:49:05 -04:00
Eliot Horowitz
bea1c15eba more portable 2009-05-03 22:40:55 -04:00
Eliot Horowitz
e1070d84f7 more portable javascript 2009-05-01 21:24:10 -04:00
Eliot Horowitz
5530e63caa make javascript more portable 2009-05-01 10:41:49 -04:00
Aaron
a229845ceb more flexibility and sanity checks for min/max query specs 2009-04-30 17:36:25 -04:00
Aaron
de01cc8c1a shell logging when starting / stopping mongo programs MINOR 2009-04-30 12:02:56 -04:00
Eliot Horowitz
b3bb71348e put mongo javascript code in cpp not H so easier to include 2009-04-30 09:09:12 -04:00
Aaron
2abdb949a1 typo MINOR 2009-04-29 17:02:50 -04:00
Aaron
0e7abe0740 add check for initial sync persistence 2009-04-29 16:55:16 -04:00
Aaron
e38ca49cb1 convert remaining tests to new pair fwk 2009-04-29 16:27:01 -04:00
Aaron
47a00e54ad more pair management enhancements for shell 2009-04-28 17:54:04 -04:00
Aaron
187145090c make node status logging debug-only 2009-04-28 15:42:44 -04:00
Aaron
feb797fabf validate initial sync status in e2e test 2009-04-28 15:33:56 -04:00
Aaron
e19818604f precise slave state check 2009-04-28 13:56:58 -04:00
Aaron
02a7e7c9b8 beginning to abstract repl pair manipulation code to make tests more robust 2009-04-28 13:54:19 -04:00
Aaron
e54bfd896a merge 2009-04-22 15:34:59 -04:00
Eliot Horowitz
03089a911b some Array helpers 2009-04-21 07:35:00 -04:00
Eliot Horowitz
9ddf2d4c1f iterative count for testing cursors 2009-04-20 17:41:27 -04:00
Aaron
33711227a3 fix index spec loop MINOR 2009-04-20 14:32:41 -04:00
Aaron
80847b561c add unique option when creating index in c++, js drivers; basic unique key unit tests 2009-04-20 13:51:54 -04:00
Aaron
6152b60368 merge 2009-04-16 11:37:44 -04:00
Aaron
94217c0d66 reset shell index cache when dropping collection 2009-04-16 10:18:09 -04:00
Eliot Horowitz
23286dd9fc server side drop now does indexes and collection 2009-04-15 22:22:40 -04:00
Eliot Horowitz
391f2f01b6 Shell: mongos stop() fix 2009-04-12 22:19:04 -04:00
Aaron
42dc27e4e9 Merge branch 'master' of git@github.com:mongodb/mongo 2009-04-10 14:46:48 -04:00
Aaron
285103740e close read end of pipe to avoid leaking descriptors MINOR 2009-04-10 14:46:02 -04:00
Aaron
278bf65f61 enhanced shell debug info 2009-04-09 18:49:45 -04:00
Eliot Horowitz
53a4ba07d7 Sharding: option to start multiple mongos for testing 2009-04-07 13:35:53 -04:00
Aaron
1ebca51c74 print timestamp with process killing failure logs MINOR 2009-04-07 10:32:11 -04:00
eliot
71d9c7af73 some windows fixes 2009-04-06 17:34:29 -04:00
Aaron
aa5309a68b print error description, test timeout MINOR 2009-04-06 16:21:56 -04:00
Aaron
36d3433d4c remove logging about mongo process management 2009-04-06 14:59:07 -04:00
Aaron
6a8c117755 soon is now 30 secs 2009-04-03 15:36:18 -04:00
Aaron
006c1404e9 assert.soon waits up to 20 sec 2009-04-03 12:53:09 -04:00
Aaron
38e53ec2ff wait up to a full minute after sending sigkill 2009-04-03 11:55:24 -04:00
Aaron
80de3918c3 sort allocated ports, since linux os doesn't allocate them in sorted order 2009-04-03 11:43:27 -04:00
Aaron
83a1aded10 validate kill call, wait longer for process to die 2009-04-03 11:32:47 -04:00
Aaron
0dd264adb5 compile linux 2009-04-03 11:27:48 -04:00
Aaron
05a8521a68 waitpid return val debug 2009-04-03 11:20:57 -04:00
Aaron
c0089eeae7 wait for process to end even after killing second time 2009-04-03 11:08:32 -04:00
Aaron
652dac2449 more correct process termination check, related debug logging 2009-04-03 10:44:30 -04:00
Aaron
8780ff947f Log warning when shell sees null bytes in mongod output 2009-04-02 15:48:18 -04:00
Aaron
7d97641828 temp sleep log for debugging 2009-04-02 11:13:20 -04:00
Aaron
3dc9982e65 Only sleep extra on sigkill, be sure to stop running mongods at end of each doTest call 2009-04-01 19:51:41 -04:00
Aaron
1fe31cb601 Dynamically allocate ports for use in repl tests 2009-04-01 17:25:47 -04:00
Aaron
dcdcd309dd Increase timeout 2009-03-31 16:46:26 -04:00
Aaron
2821a57dcb sleep to allow os to recover resources of killed process 2009-03-31 14:59:58 -04:00
Eliot Horowitz
6fa7b75c6a more debugging 2009-03-29 21:24:16 -04:00
Eliot Horowitz
93a3c98bf0 show error on Load error 2009-03-29 09:42:44 -04:00
Eliot Horowitz
83158d34d5 var scope safety 2009-03-27 16:12:06 -04:00
Eliot Horowitz
9e20569d70 formatting 2009-03-27 16:11:57 -04:00
Eliot Horowitz
6b97b0e88b Max/Min Key display - need to make spcial classes though 2009-03-26 16:17:08 -04:00
Eliot Horowitz
c4c2b2559a better Array.tojson option 2009-03-26 16:16:53 -04:00
Aaron
6b1613adb6 safer use of dbs map 2009-03-26 15:12:47 -04:00
Aaron
cc6f3c9a25 Print debug info when mongo crashes 2009-03-24 17:35:50 -04:00
Eliot Horowitz
002155dcbb assert helpers for testing success/failure of commands 2009-03-18 10:50:49 -04:00
Eliot Horowitz
bc725bc851 better tojson error 2009-03-17 15:48:46 -04:00
Aaron
6299748ad4 Allow signal spec for stopMongoProgram 2009-03-12 12:21:07 -04:00
Aaron
26be29395e cleanup 2009-03-11 18:47:16 -04:00
Aaron
2f5201c7e7 Merge 2009-03-11 17:39:35 -04:00
Eliot Horowitz
a58e2ce7bd easy access to configdb 2009-03-11 17:03:05 -04:00
Eliot Horowitz
300485189d npe on assert 2009-03-11 17:02:57 -04:00
Aaron
502e20f1cc finishCloneCollection checkpoint 2009-03-11 10:31:47 -04:00
Eliot Horowitz
0f3069a4a5 copyCollection 2009-03-06 16:44:16 -05:00
Aaron
fd722b71e0 Remove compiler warning 2009-03-06 13:47:02 -05:00
Aaron
9b3af26cbe Comment 2009-03-06 13:44:38 -05:00
Aaron
d563bf486b Compile other machines 2009-03-06 10:22:32 -05:00
Aaron
abf2d9af37 Comments 2009-03-05 18:53:04 -05:00
Aaron
324e716f2f fork checkpoint 2009-03-05 18:19:43 -05:00
Aaron
0a291f6958 fork checkpoint 2009-03-05 16:06:11 -05:00
Aaron
46e6c6b475 shell fork checkpoint 2009-03-05 00:07:09 -05:00
Aaron
9be10a4f98 For starters, unlock v8 when we expect a response from server 2009-03-04 16:55:24 -05:00
Eliot Horowitz
c6a4f25e16 some timestamp helpers 2009-02-28 18:44:31 -05:00
Aaron
81a684ee5f Massert hack 2009-02-27 10:48:22 -05:00
Aaron
e910263ed2 Additional fix for cloneCollection() js function 2009-02-26 12:16:48 -05:00
Aaron
c7496cc9bf Update cloneCollection js function to match updated command spec 2009-02-26 12:12:25 -05:00
Eliot Horowitz
d18d71b169 better assert.eq 2009-02-24 17:09:21 -05:00
Eliot Horowitz
9b3b8d33e1 sharding checkpoint and copy and paste error 2009-02-23 17:43:55 -05:00
Eliot Horowitz
441e5585b6 printjson 2009-02-21 23:39:32 -05:00
Eliot Horowitz
54ea674212 assert.neq 2009-02-20 13:46:43 -05:00
Eliot Horowitz
30f3acd445 verbosity option 2009-02-20 10:46:23 -05:00
Eliot Horowitz
07cdf76329 shard infrastructure checkpoint 2009-02-19 12:55:01 -05:00
Eliot Horowitz
7c018a08c3 adminCommand helper for sharding 2009-02-19 11:33:03 -05:00
Aaron
9d9869484a Add cloneCollection to shell 2009-02-18 16:44:56 -05:00