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

357 Commits

Author SHA1 Message Date
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
Eliot Horowitz
e0762fd1ba assert.throws 2009-02-18 13:54:08 -05:00
Eliot Horowitz
163bd066bd cleaning, better test system 2009-02-18 10:59:13 -05:00
Eliot Horowitz
1a4ad3f915 cleaning up test framework and very simple sharding framework sanity test 2009-02-17 10:06:02 -05:00
Eliot Horowitz
873ab5b666 split out server stuff from mongo.js 2009-02-17 09:38:03 -05:00
Aaron
fb8957c743 Less dumb interface 2009-02-14 09:15:05 -05:00
Aaron
851b91a4d3 Don't expect dbpath parameter for non-mongod programs 2009-02-13 14:35:03 -05:00
Aaron
8fc2c86e0a Now can start any 'mongo program' from within mongo shell 2009-02-13 12:01:37 -05:00
Aaron
ebc0e5d2f2 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-13 10:44:52 -05:00
Aaron
e4c179c180 Killing the spawned process doesn't widow the pipe -- have to close remote end of the pipe manually 2009-02-13 10:44:35 -05:00
Eliot Horowitz
640d9fc0ac getSisterDB 2009-02-13 10:01:31 -05:00
Eliot Horowitz
65687c9303 command helper system
runCommand( { "blah" : 1 , help : true } )
in shell db.commandHelp( "blah" )
2009-02-13 09:44:07 -05:00
Aaron
be6e778aa1 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-12 16:52:41 -05:00
Aaron
c12c7851f9 Log output from spawned mongod instances to stdout 2009-02-12 16:52:34 -05:00
Eliot Horowitz
6e345fc61d make shell output more info for bindata
BSONElement.binDataType helper
2009-02-12 14:30:45 -05:00
Eliot Horowitz
25be6f87a2 remove warning for non-readline 2009-02-11 21:15:54 -05:00
Eliot Horowitz
7be50081c4 win32 hack removed 2009-02-11 21:05:45 -05:00
Eliot Horowitz
bdc7d90b85 Merge branch 'master' of git.10gen.com:/data/gitroot/p 2009-02-11 09:35:11 -05:00
Eliot Horowitz
3ae8e9440c catch socker errors for find in shell 2009-02-11 09:35:08 -05:00
Dwight
8154c0af5e db.shutdownServer() in shell 2009-02-11 09:34:00 -05:00
U-ELIOT-019992DFC\Administrator
c68d42e36c better non-readline version of shell 2009-02-11 09:15:06 -05:00
Eliot Horowitz
4ffe0fe3ad windows 2009-02-10 22:11:51 -05:00
Dwight
9cc79db551 fix a bug with dup _id keys, but fix is in comments for tonight
make show dbs pretty

2009-02-10 17:42:31 -05:00
U-ELIOT-019992DFC\Administrator
1b6151f37b make dbshell not require readline 2009-02-10 13:45:30 -05:00
Eliot Horowitz
c245e7066c reIndex 2009-02-09 13:05:36 -05:00
Dwight
147948c7b3 doneAndDecouple() -> obj() 2009-02-09 13:04:32 -05:00
Eliot Horowitz
82f5e84538 fix for not having . in path 2009-02-07 10:35:57 -05:00
Eliot Horowitz
5b8a108923 removeUser 2009-02-07 10:27:22 -05:00
Aaron
3504f3249c dbshell support for field spec with count 2009-02-06 17:16:28 -05:00
Dwight
9e237c3871 Merge branch 'master' of git.10gen.com:/data/gitroot/p 2009-02-06 13:30:27 -05:00
Dwight
94f125e855 new pagewriter
File class
sleepmillis fixed
2009-02-06 13:29:57 -05:00
Eliot Horowitz
d2801728ed it get mapped to last result 2009-02-06 12:31:24 -05:00
Aaron
3706946ff5 Localize loop var 2009-02-05 22:59:31 -05:00
Dwight
0c2e6bc6e9 more shell command helpers 2009-02-05 16:05:06 -05:00
Dwight
50538e88c3 db.getReplicationInfo() in shell 2009-02-05 15:41:34 -05:00
Aaron
875d81cdd1 Print count failure message readably 2009-02-04 17:10:48 -05:00
Dwight
e0030050ee "show profile" feature in the shell

2009-02-04 14:46:17 -05:00
Eliot Horowitz
e2e9efa98a catch socket errors 2009-02-04 13:43:54 -05:00
Dwight
fac2ee626f mamke getCollectionNames() in the shell prettier
overlogging
2009-02-03 14:42:53 -05:00
Aaron
c684aab51f Merge branch 'master' of ssh://aaron@git.10gen.com/data/gitroot/p 2009-02-02 09:54:23 -05:00
Aaron
4c8dd6e18f Handle more signals in shell 2009-02-02 09:53:14 -05:00
Eliot Horowitz
9bcacf16c0 pragma pack changes for solaris
slight change this will break other platforms, will test
2009-02-01 22:21:32 -05:00
Aaron
0468be26d9 Merge branch 'master' of ssh://aaron@git.10gen.com/data/gitroot/p 2009-01-30 15:20:10 -05:00
Aaron
3613577677 Better kill 2009-01-30 15:15:48 -05:00
Eliot Horowitz
120f859704 change password digest
from md5( "mongo" + pwd )
to md5( username + ":mongo:" + pwd )
2009-01-30 15:06:12 -05:00
Aaron
02e22ec1c2 Merge branch 'master' of ssh://aaron@git.10gen.com/data/gitroot/p 2009-01-30 14:57:45 -05:00
Aaron
898a1f66c2 Add slaveOk option 2009-01-30 14:51:31 -05:00
Eliot Horowitz
e5d97f404a cleaning 2009-01-30 13:00:47 -05:00
Aaron
d4ac72577d Kill child mongod instances if killed abruptly 2009-01-30 12:37:46 -05:00
Eliot Horowitz
6a70dab62b hint 2009-01-30 10:05:07 -05:00
Eliot Horowitz
a0a79507ea slighly less spam 2009-01-29 20:41:05 -05:00
Aaron
c00066302a Merge branch 'master' of ssh://aaron@git.10gen.com/data/gitroot/p 2009-01-29 16:32:18 -05:00
Aaron
ee7c4694ec Get rid of hudson compiler warning 2009-01-29 16:31:58 -05:00
Eliot Horowitz
4a01d610ad $where fix 2009-01-29 15:58:54 -05:00
Aaron
011cd2af7d Fix includes for linux 2009-01-29 12:21:58 -05:00
Aaron
04e53d2dc0 Typo 2009-01-29 12:02:32 -05:00
Aaron
dfbacf162d Merge 2009-01-29 11:54:49 -05:00
Aaron
8c926dd74d Add startMongod() and stopMongod() functions to mongo 2009-01-29 11:46:29 -05:00
Eliot Horowitz
584d2d36f2 Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p 2009-01-29 09:24:15 -05:00
Eliot Horowitz
b4fdd9d0e8 listFiles 2009-01-29 09:05:46 -05:00
Eliot Horowitz
d5f45b0d52 not need so many v8:: around 2009-01-29 08:57:02 -05:00
Eliot Horowitz
14e3b3c714 --host and --port 2009-01-29 07:46:43 -05:00
Aaron
d3e776d48b Add 'nodb' arg to shell 2009-01-28 10:25:16 -05:00