<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 18, 2013 at 2:19 AM, John Arbash Meinel <span dir="ltr"><<a href="mailto:john@arbash-meinel.com" target="_blank">john@arbash-meinel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
...<br>
><br>
</div><div class="im">> Well, things keep overtaking me and I've not gotten to this yet.<br>
> Could I ask someone on the juju team to try running the tests with<br>
> a mongos --noscripting and let us know what happens? Even more<br>
> awesome would be to post the results to the bug "juju-core is<br>
> unavailable for arm64":<br>
> <a href="https://bugs.launchpad.net/juju-core/+bug/1261452" target="_blank">https://bugs.launchpad.net/juju-core/+bug/1261452</a><br>
><br>
> Thanks!<br>
><br>
> Cheers, mwh<br>
><br>
<br>
</div>I did post to the bug, but for people following along here, I tried<br>
this patch:<br>
=== modified file 'testing/mgo.go'<br>
- --- testing/mgo.go 2013-11-06 13:38:01 +0000<br>
+++ testing/mgo.go 2013-12-18 06:23:25 +0000<br>
@@ -99,6 +99,7 @@<br>
"--noprealloc",<br>
"--smallfiles",<br>
"--nojournal",<br>
+ "--noscripting",<br>
"--nounixsocket",<br>
}<br>
server := exec.Command("mongod", mgoargs...)<br>
<br>
And the test suite passed fore me. I did use 'ps -ef | grep mongod' to<br>
see what command was being run, interrupted the test suite, then ran<br>
that same command (otherwise the DB doesn't live particularly long).<br>
And then ran:<br>
<br>
> var map = function() { emit ( this._id, this.format) } var reduce =<br>
> function(key, values) {return Array.sum(values)}<br>
> db.charms.mapReduce(map, reduce, {out: "format"})<br>
Wed Dec 18 11:13:09 uncaught exception: map reduce failed:{<br>
"errmsg" : "exception: cannot run map reduce without the js engine",<br>
"code" : 16149,<br>
"ok" : 0<br>
}<br>
<br>
Which gives me reasonable confidence that --noscripting is doing what<br>
we want, and we don't need scripting (for the test suite). Are there<br>
edge cases somewhere live that might use it? Could be, but we don't<br>
exercise that case in the test suite at least.<br>
<div class="im"><br></div></blockquote><div><br></div><div>Thanks for verifying that scripting isn't needed. The issue is v8 builds aren't supported on some architectures and getting mongodb ported over for juju's usage would be easier if that compilation could be avoided. Its a bit unclear to what extent mongo supports building without v8 (though the option exists with its scons).</div>
<div><br></div><div>cheers,</div><div>Kapil</div></div><br></div></div>