Does juju work with a JavaScript-less mongodb?

John Arbash Meinel john at arbash-meinel.com
Wed Dec 18 07:19:11 UTC 2013


-----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.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlKxTG8ACgkQJdeBCYSNAANKqwCgvZKgppcdVxZ9w2vaj2YIB+x+
hOQAnRgx5QOVmNDArcpgWXrUsJTGrxC6
=frtj
-----END PGP SIGNATURE-----



More information about the Juju-dev mailing list