Discussion about retry in state.Open()

Gustavo Niemeyer gustavo at niemeyer.net
Fri Jan 18 13:35:25 UTC 2013


On Fri, Jan 18, 2013 at 11:02 AM, roger peppe <roger.peppe at canonical.com> wrote:
> [copied from other thread]
>
> On 18 January 2013 12:00, Gustavo Niemeyer <gustavo at niemeyer.net> wrote:
>> mgo doesn't retry every 250ms..
>
> True. mgo seems to try about three times every 500ms,
> averaging once every 185ms.

You're right, there's a tighter internal loop which retries three
times when the server is unreachable.

> http://play.golang.org/p/f4XEMFXKDz

The import is broken, FWIW.


gustavo @ http://niemeyer.net



More information about the Juju-dev mailing list