Does juju work with a JavaScript-less mongodb?

Kapil Thangavelu kapil.thangavelu at canonical.com
Wed Dec 18 14:53:06 UTC 2013


On Wed, Dec 18, 2013 at 2:19 AM, John Arbash Meinel
<john at arbash-meinel.com>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> ...
> >
> > Well, things keep overtaking me and I've not gotten to this yet.
> > Could I ask someone on the juju team to try running the tests with
> > a mongos --noscripting and let us know what happens?  Even more
> > awesome would be to post the results to the bug "juju-core is
> > unavailable for arm64":
> > https://bugs.launchpad.net/juju-core/+bug/1261452
> >
> > Thanks!
> >
> > Cheers, mwh
> >
>
> I did post to the bug, but for people following along here, I tried
> this patch:
> === modified file 'testing/mgo.go'
> - --- testing/mgo.go 2013-11-06 13:38:01 +0000
> +++ testing/mgo.go 2013-12-18 06:23:25 +0000
> @@ -99,6 +99,7 @@
>    "--noprealloc",
>    "--smallfiles",
>    "--nojournal",
> +  "--noscripting",
>    "--nounixsocket",
>   }
>   server := exec.Command("mongod", mgoargs...)
>
> And the test suite passed fore me. I did use 'ps -ef | grep mongod' to
> see what command was being run, interrupted the test suite, then ran
> that same command (otherwise the DB doesn't live particularly long).
> And then ran:
>
> > var map = function() { emit ( this._id, this.format) } var reduce =
> > function(key, values) {return Array.sum(values)}
> > db.charms.mapReduce(map, reduce, {out: "format"})
> Wed Dec 18 11:13:09 uncaught exception: map reduce failed:{
>  "errmsg" : "exception: cannot run map reduce without the js engine",
>  "code" : 16149,
>  "ok" : 0
> }
>
> Which gives me reasonable confidence that --noscripting is doing what
> we want, and we don't need scripting (for the test suite). Are there
> edge cases somewhere live that might use it? Could be, but we don't
> exercise that case in the test suite at least.
>
>
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).

cheers,
Kapil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20131218/708ab4a5/attachment.html>


More information about the Juju-dev mailing list