Mongo 2.2.0 vs. 2.4.6 problem
Gustavo Niemeyer
gustavo at niemeyer.net
Fri Dec 20 02:54:35 UTC 2013
As I mentioned, the test suite of mgo sets up several replica sets, config
servers, etc. The same code works with both 2.2 and 2.4. I suggest taking
a look at it.
On Dec 19, 2013 11:44 PM, "Nate Finch" <nate.finch at canonical.com> wrote:
> I'm not sure what the actual issue in Mongo is, but I know this code works
> on 2.2.6 and 2.4.6 and doesn't on 2.2.0. I'm honestly not really sure how
> to debug Mongo itself. 2.2.0 is sufficiently old that it didn't seem that
> unreasonable to ask people to upgrade to get HA in juju.
>
> If you'd like to give a hand at debugging the issue in Mongo, I wouldn't
> be averse to the help. I was mostly trying to take the expedient way out,
> since I'd spent so much time on the issue as it is.
>
> And what is the actual issue? 2.2 must of course work with replica sets.
> The mgo test suite is able to set it all up automatically, for example.
> On Dec 19, 2013 5:40 PM, "Nate Finch" <nate.finch at canonical.com> wrote:
>
>> BTW, I finally got ahold of some of the mongo people on #mongo, and it
>> looks like it's just a bug in 2.2.0. They say 2.2.0 is near EOL anyway. I
>> think we may have to just tell people that if they want mongo in a replica
>> set, they need to be on a version higher than 2.2.0 (notably, I tried 2.2.6
>> and it works just fine).
>>
>>
>> On Thu, Dec 19, 2013 at 1:53 PM, Nate Finch <nate.finch at canonical.com>wrote:
>>
>>> I'm getting a weird failure running some tests to set up mongo in a
>>> replica set from a locally running instance of Mongo. The tests pass in
>>> 2.4.6, but fail in 2.2.0. Mongo output for each is here:
>>> http://pastebin.ubuntu.com/6596052/ The 2.2 instance fails with "all
>>> members and seeds must be reachable to initiate set". Anyone have any
>>> suggestions for making this work in both 2.2 and 2.4?
>>>
>>> This is a minimal implementation that shows the difference: (works
>>> against mongo 2.4.6, fails against 2.2.0).
>>>
>>> http://pastebin.ubuntu.com/6601155/
>>>
>>> Anyone on this list know Mongo well? I've lost a lot of time trying to
>>> figure this out.
>>>
>>> -Nate
>>>
>>
>>
>> --
>> Juju-dev mailing list
>> Juju-dev at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20131220/226df283/attachment-0001.html>
More information about the Juju-dev
mailing list