Commit Graph

6155 Commits

Author SHA1 Message Date
Slava Kim
29ebdbfeae Sophisticate the tests for oplog + limits + sorter 2014-02-28 14:34:44 -08:00
Slava Kim
571ba01f16 Use new sorter + projection api in oplog code 2014-02-28 14:25:33 -08:00
Slava Kim
c14e41a0d7 Simple tests on Sorter.combineIntoProjection 2014-02-28 14:22:30 -08:00
Slava Kim
a96243e746 Sorter.combineIntoProjection is an instance method
Reuse existing sort spec parsing, store sort spec explicitly with key-paths. Elide numeric key in Sorter._getPaths
2014-02-28 14:16:10 -08:00
Slava Kim
85ba085c78 Oplog code takes sorter fields into shared projection 2014-02-26 18:45:25 -08:00
Slava Kim
b3548e5437 Combine sorter spec with projection 2014-02-26 18:44:24 -08:00
Slava Kim
7948c0f38b Test for preserving fields needed for sort 2014-02-26 17:09:16 -08:00
David Glasser
af08231656 When switching to QUERYING, stop what you're doing
We don't think there was a bug before but this should make things a
little more firm.
2014-02-26 16:33:27 -08:00
David Glasser
15a4cac27c typo 2014-02-26 15:58:08 -08:00
David Glasser
d249fbd07b Merge branch 'devel' into oplog-limits-buffered
Conflicts:
	packages/mongo-livedata/oplog_tests.js
2014-02-26 15:55:39 -08:00
David Glasser
078c00563a Refactor an assertion in _removePublished 2014-02-26 15:54:37 -08:00
David Glasser
de9bb4bfc4 Change how we sanity-check _publishNewResults
The old version was just checking that docs *matched*, but we want the
stronger result that docs are *published*.
2014-02-26 15:53:48 -08:00
Emily Stark
e981b0c629 Bump run test timeouts 2014-02-26 14:26:13 -08:00
David Glasser
6897d515e1 Only set oplog-reply flag on the oplog collection
Otherwise can crash mongod!

Wed Feb 26 11:09:32.829 [conn499]  logs.tmp-test-logs-10833_meteor_com Assertion failure str::startsWith(ns, "local.oplog.") src/mongo/db/repl_block.cpp 261
0x10b9245ab 0x10b8fb64c 0x10b816015 0x10b5b2d06 0x10b714ce6 0x10b6bf354 0x10b6c398b 0x10b4dd9e2 0x10b917699 0x10b957055 0x7fff948637a2 0x7fff948501e1
I20140226-11:09:32.831(-8) (satellite.js:296) process 85850 for job tmp-test-logs-10833.meteor.com null exited with 1
 0   mongod                              0x000000010b9245ab _ZN5mongo15printStackTraceERSo + 43
 1   mongod                              0x000000010b8fb64c _ZN5mongo12verifyFailedEPKcS1_j + 284
 2   mongod                              0x000000010b816015 _ZN5mongo19updateSlaveLocationERNS_5CurOpEPKcNS_6OpTimeE + 2405
 3   mongod                              0x000000010b5b2d06 _ZN5mongo12ClientCursor19updateSlaveLocationERNS_5CurOpE + 52
 4   mongod                              0x000000010b714ce6 _ZN5mongo14processGetMoreEPKcixRNS_5CurOpEiRbPb + 534
 5   mongod                              0x000000010b6bf354 _ZN5mongo15receivedGetMoreERNS_10DbResponseERNS_7MessageERNS_5CurOpE + 1492
 6   mongod                              0x000000010b6c398b _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE + 4939
 7   mongod                              0x000000010b4dd9e2 _ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE + 198
 8   mongod                              0x000000010b917699 _ZN5mongo17PortMessageServer17handleIncomingMsgEPv + 1657
 9   mongod                              0x000000010b957055 thread_proxy + 229
 10  libsystem_c.dylib                   0x00007fff948637a2 _pthread_start + 327
 11  libsystem_c.dylib                   0x00007fff948501e1 thread_start + 13
2014-02-26 13:34:24 -08:00
Slava Kim
a94bb6d883 Allow appending to buffer if new doc is equivalent to the greatest element 2014-02-25 23:26:29 -08:00
Slava Kim
2f4dac064e Keep _id in published and buffer 2014-02-25 23:22:59 -08:00
Slava Kim
a0cc339b6d toPublish and toBuffer (or staysInBuffer) can't be true at once 2014-02-25 23:19:20 -08:00
Slava Kim
afc58bcac6 fix typo 2014-02-25 23:15:02 -08:00
Slava Kim
4b955b5afc Relax events order in tests as mongo-livedata doesn't define the order in observe interface 2014-02-25 22:45:29 -08:00
Avital Oliver
3e76fc9de4 Implement Deps.flush(_throwFirstError: true})
This makes the first error hit during flush time
to be thrown rather than logged. The flush process
then continues and all other errors are still logged,
and the flush process completes.
2014-02-25 15:09:25 -08:00
Avital Oliver
f778a2c0fc Test the _throwFirstError option to Deps.flush 2014-02-25 15:08:15 -08:00
David Greenspan
02325f6e3c Add failing test for ordering of Deps re-runs 2014-02-25 14:48:31 -08:00
Slava Kim
b23a26fbbd More white-box style tests for _safeAppendToBuffer flag 2014-02-25 11:49:54 -08:00
Slava Kim
370ee125a9 Rationalize the test failure 2014-02-25 11:37:01 -08:00
Slava Kim
76ffc74e0e Tests tests tests 2014-02-25 11:26:38 -08:00
Slava Kim
6ad69c52ae Explicit test for unsupported cursor with a single skip 2014-02-25 11:25:19 -08:00
Slava Kim
3355ba7e85 Fix a check when buffer can be null 2014-02-25 11:25:19 -08:00
Tim Haines
787e91f26c History: Remove duplicated line re facts package 2014-02-25 10:09:13 -08:00
Slava Kim
b082f1847a Another small test missing 2014-02-25 10:00:27 -08:00
Slava Kim
be7038e1e8 More white-box tests
one test fails so far
2014-02-25 01:11:35 -08:00
Slava Kim
4657f8c1df Use binary-heap package in mongo-livedata 2014-02-25 00:51:00 -08:00
Slava Kim
db28492e6b Tweak the description of id-map 2014-02-25 00:45:22 -08:00
David Glasser
0aa0bf0ade Make some tests more likely to pass on slow net
We really should download 0.7.0.1 just once for all tests as some
special-cased thing in selftest.js, I think.
2014-02-25 00:28:48 -08:00
Slava Kim
b8c8d87d5f Relax tests and remove a dead piece of code
Apparently the implementation of sin/cos changed in the recent Chrome as now the
results are off by 1e-6 (compared to a different C++ implementation we generated
the tests previously).

It is not worth tracking down the 1e-6 error and change implementation for it.
2014-02-25 00:28:23 -08:00
Slava Kim
aab7e3e794 Merge branch 'binary-heap' into oplog-limits-buffered 2014-02-25 00:19:17 -08:00
Slava Kim
7bd160192c Replace ad-hoc inheritance with Meteor._inherit calls 2014-02-24 23:58:31 -08:00
Slava Kim
a51bc65372 Meteor._inherits - prototypical inheritance implementation 2014-02-24 23:58:25 -08:00
Slava Kim
6dfd5bfc29 Additional generated tests for min-max-heap 2014-02-24 21:25:17 -08:00
Emily Stark
ce84c228e0 Avoid returning twice on error in files.run 2014-02-24 20:52:55 -08:00
Slava Kim
9451416f27 Use options object in MaxHeap constructor and allow passing a custom IdMap class 2014-02-24 20:29:39 -08:00
Slava Kim
97f7ccfa63 Glasser's comments 2014-02-24 20:22:24 -08:00
Emily Stark
38bd2c98bf Merge branch 'master' into devel
Conflicts:
	History.md
2014-02-24 14:22:44 -08:00
Emily Stark
77a474bdb4 Merge branch 'release-0.7.1'
Conflicts:
	docs/.meteor/release
2014-02-24 14:14:13 -08:00
Emily Stark
fd7eaf45d0 Bump docs and examples to 0.7.1.1 2014-02-24 14:02:33 -08:00
Emily Stark
d32d2de1d6 Update banner/notices/History for 0.7.1.1 2014-02-24 13:48:24 -08:00
Emily Stark
fabd6c6246 Don't print 'undefined' around banner text release/0.7.1.1-rc1 release/0.7.1.1 2014-02-24 13:42:14 -08:00
Matt DeBergalis
f8eec237a6 mention oplog 2014-02-24 12:42:51 -08:00
Slava Kim
036dc4885e Tiny changes to tests formatting 2014-02-24 00:26:11 -08:00
Slava Kim
90a0c2d5c2 Add missing _safeAppendToBuffer = false and add clarity with comments 2014-02-24 00:25:38 -08:00
Nick Martin
686996fb81 Tweak text in login button for meteor-developer to fit in current width. release/0.7.1 release/0.7.1-rc5 2014-02-23 20:51:10 -08:00