Commit Graph

13196 Commits

Author SHA1 Message Date
David Glasser
cf363d8530 Make sure to not clear queue completely
Expand on some comments
2015-02-10 12:16:01 -08:00
David Glasser
56f21fc82e Use double-ended-queue for various server queues
See benchmarks at https://github.com/petkaantonov/deque
2015-02-10 12:16:01 -08:00
David Glasser
a4626f1c8e If oplog tailing gets too far behind, just poll
The number of entries that is "too far" to be behind is configurable
with $METEOR_OPLOG_TOO_FAR_BEHIND and defaults to 2000.

Fixes #2668.
2015-02-10 12:16:01 -08:00
David Glasser
7ae5678db2 Move oplog tailing to an explicit background queue
This will allow us to drop the queue if it gets too far behind.
2015-02-10 12:16:01 -08:00
Sashko Stubailo
b7979dde37 Add missing phantomjs script file 2015-02-10 11:56:20 -08:00
Sashko Stubailo
1bd5ea4cc5 Fix test that was broken by newline conversion
We used to convert newlines on readFile, and now we don't.
This broke the test, so I have manually inspected the output
and updated the hash.
2015-02-10 11:54:43 -08:00
Avital Oliver
08fccd4e27 Don't run tests with colon filenames on Windows
These tests are intended to guard against accidentally working with files
that have colons when on Mac/Linux, and then those packages not working on
Windows. There's nothing to test about the other direction.
2015-02-10 11:46:14 -08:00
Sashko Stubailo
23e71a764f Mark two tests as client-refresh 2015-02-10 11:42:36 -08:00
Sashko Stubailo
7f6231f01d Don't use bash to run phantomjs 2015-02-10 11:42:36 -08:00
Slava Kim
4e31c07979 Tweaks to the build process
still didn't manage to make it build on Win7
2015-02-10 11:25:33 -08:00
Avital Oliver
15e87e33e8 Fix tests hard-coding METEOR as release track
Now it reads the value from catalog.DEFAULT_TRACK, which is both more
correct and necessary for the current "preview" state of Windows.

Fixed the following self-tests on Windows:
- run: update during run
- releases: springboard

Unfortunately, the autoupdate self-test still fails, maybe due to a real
bug?
2015-02-10 11:21:17 -08:00
Avital Oliver
d747157806 Add clarifying comment about Windows workaround 2015-02-09 22:36:50 -08:00
Avital Oliver
504e05326f Delete mongod.lock file when starting Meteor
When we try to kill old running versions of mongod, then we may have to
resort to killing the process without it having an opportunity to close
gracefully, so we need to also delete the lock file if we want to be able
to start mongod again.

This is made especially worse on Windows, where `process.kill` always
kills a process non-gracefully.

Should fix https://github.com/meteor/windows-preview/issues/34, and some
self-test failures.
2015-02-09 22:31:10 -08:00
David Glasser
ab292eb203 publish-meteor-tool: work on emacs 2015-02-09 18:18:14 -08:00
David Glasser
ad999ee0d8 publish-meteor-tool-on-arch: fix conditional 2015-02-09 18:16:57 -08:00
David Glasser
f51094f1da publish-meteor-tool-on-arch: reserve more time 2015-02-09 18:16:26 -08:00
Slava Kim
8ffa92c654 Uncomment a weirdly commented symbol 2015-02-09 15:19:24 -08:00
Sashko Stubailo
2eaa848bcc Convert __dirname to standard path 2015-02-09 13:49:57 -08:00
Sashko Stubailo
f29c954458 Bump a bunch of version numbers for new preview release/WINDOWS-PREVIEW@0.1.7 2015-02-09 13:23:24 -08:00
Sashko Stubailo
1cc23f8547 Bump release 2015-02-09 13:14:57 -08:00
Sashko Stubailo
c99f9584c1 Bump dev bundle version 2015-02-09 12:10:44 -08:00
Sashko Stubailo
466559a8c4 Switch to using a fork of fibers on Windows 2015-02-09 12:10:44 -08:00
Slava Kim
a3a2ad5edd Merge branch 'windows-r' into devel
Conflicts:
	tools/profile-require.js
2015-02-09 11:44:05 -08:00
David Glasser
8c48196f4d Remove unnecessary requires from mini-files.js
and add a comment making it clear that we are NOT using this file for
the concurrency-related changes, just for cross-platform normalization.
2015-02-09 11:40:44 -08:00
Sashko Stubailo
18692b672d Special cases for files.getHomeDir on win32
Fixes https://github.com/meteor/windows-preview/issues/38
2015-02-09 11:33:32 -08:00
Slava Kim
e70193442f Add the new Windows Installer
Developed by Sorin Chitu, from the Elance contract
2015-02-09 11:25:57 -08:00
Ben Newman
4ad860ca47 Move tools/shell/server.js to tools/server/shell-server.js.
Since this file ends up getting copied into the server bundle, along with
files like boot.js, it makes sense to keep it with those files.

Renamed tools/shell/client.js to tools/shell-client.js for symmetry.
2015-02-09 11:42:49 -05:00
Mitar
40575dde25 Missing dependency. 2015-02-08 19:02:12 -08:00
Dan Dascalescu
63d069e138 Syntax highlight for the reactive-dict README example 2015-02-08 19:00:42 -08:00
Slava Kim
d07ff8e99c Convert the Windows-styled path from Assets.get* calls 2015-02-07 08:54:44 -08:00
David Glasser
8e8ee3eca4 Unregister ObserveMultiplexer before stop
It's maybe possible that stop() yields, and in general is more complex.
Since the ObserveMultiplexer is already at the point where it will not
be able to start running again, we should remove it from the registry
first.
2015-02-07 00:02:42 -08:00
David Glasser
9166de39fe Release write fences on PollingObserveDriver.stop
OplogObserveDriver.stop() already does this.
2015-02-07 00:01:20 -08:00
David Glasser
25d9ab8250 Improve error message in PollingObserveDriver
Now when we get an error from Mongo, the cursor description is included.

Other than by the test-only _resumePolling, _pollMongo is only called at
the top level of an async-queued task, so the previously thrown error
never did anything other than print the exception (from within
_SynchronousQueue) anyway.

Fixes #1633.

(See also #2534.)
2015-02-06 19:21:30 -08:00
David Glasser
44d200d259 We now stand a chance of supporting MongoDB 3.0. 2015-02-06 18:50:43 -08:00
David Glasser
eaf11fa55e Update Node Mongo driver from 1.4.1 to 1.4.30
and BSON from 0.2.7 to 0.2.18

This is past the minimum version required to use the upcoming MongoDB
3.0.

Fixes #3654.
2015-02-06 18:05:16 -08:00
Sashko Stubailo
ce93b8f108 Improve findMongoPids and style in run-mongo.js 2015-02-06 17:14:22 -08:00
Avital Oliver
02038e70a6 Correctly detect which package versions are installed
This was a small mistake left over from a previous commit
to change the return value of _alreadyInstalled
2015-02-06 16:50:11 -08:00
Avital Oliver
ff32eb5722 In selftest in Windows, kill child processes more
In a previous commit we did that in one but not all cases in selftest
where we try to kill child processes.
2015-02-06 15:33:24 -08:00
David Glasser
b276aa79ca Give a more specific error message on disk full
Fixes #2378.

Note that this error is detected by reading stdout, and we don't
actually want to buffer all of stdout in memory (it grows pretty fast).
2015-02-06 14:57:40 -08:00
Sashko Stubailo
6aa9142e67 Fix some test bugs related to package names/dirs 2015-02-06 14:49:23 -08:00
Avital Oliver
2f24eb418d Fix incorrect logic, while improving an error message 2015-02-06 14:28:51 -08:00
Sashko Stubailo
e6a26bded0 Wrong method call in self test. (add flow plz) 2015-02-06 13:56:01 -08:00
Sashko Stubailo
497340498f Fix missing createPackage arguments in selftest 2015-02-06 13:53:24 -08:00
Avital Oliver
7b531c1ad5 Don't extract dev bundle unless deletion worked
Before this change, if the deletion failed the dev bundle
would get extracted into a subdirectory of METEOR\dev_bundle
rather than into that directory.
2015-02-06 13:47:37 -08:00
Avital Oliver
8fb583507f Make "run" selftest pass on Windows 2015-02-06 13:47:15 -08:00
Sashko Stubailo
0ba325d1ca Guard against undefined options 2015-02-06 13:40:33 -08:00
Ben Newman
19080bd53d Split server/shell.js into shell/server.js and shell/client.js.
Note that shell/server.js is copied into the bundle as shell-server.js,
like before, however now it contains none of the extraneous code that
belongs in shell/client.js.

The original reason server and client code were combined in a single file
was to share helper functions and configuration variables (e.g.
getInfoFile and EXITING_MESSAGE). Now, shell/client.js requires
shell/server.js to access those shared exports.
2015-02-06 14:33:19 -05:00
David Glasser
07b6a2245a Merge branch 'mongo-2.6' into devel
Full support for MongoDB 2.6.

Upgrade bundled dependencies:

  - node: 0.10.36 (from 0.10.33)
  - Fibers: 1.0.5 (from 1.0.1)
  - MongoDB: 2.6.7 (from 2.4.12)
  - openssl in mongo: 1.0.2 (from 1.0.1j)

Fixes #2036.
2015-02-06 11:09:50 -08:00
David Glasser
a8568eb992 History.md updates for Mongo and Node upgrades 2015-02-06 10:55:34 -08:00
David Glasser
2e4d3f2833 Don't use system.replset to check for replset
It requires an unnecessary level of permissions in Mongo 2.6.  Instead,
use the isMaster command plus parsing the URL.

Fixes #2121.
2015-02-05 22:40:45 -08:00