[sheepdog] [PATCH] zookeeper: hande node joining race
Yunkai Zhang
yunkai.me at gmail.com
Tue May 29 08:25:00 CEST 2012
On Tue, May 29, 2012 at 12:52 PM, Christoph Hellwig <hch at infradead.org> wrote:
> On Mon, May 28, 2012 at 11:54:32PM +0800, Yunkai Zhang wrote:
>> On Mon, May 28, 2012 at 11:25 PM, Christoph Hellwig <hch at infradead.org> wrote:
>> > I got a bug report where the nr_sd_nodes == nr_zk_nodes assert in
>> > build_node_list is trigger by a larger number of sheep joining at the same
>> > time.
>>
>> We should not start sheeps at the same time. Are you read this commit log from
>> this patch:8567aae281c75502c0a267bf76b771a2af8392f2 ?
>
> No, I generally do not read commit logs to find excuses for bugs.
>
> Even if starting sheep fast wasn't something you thougt about initially:
>
> a) it should be documented in the source tree in a comment or
> documentation file
I had suggested to document it in sheepdog wiki, but my coworker
insisted that we should keep that wiki easy for newbie.
I'll update this
wiki:https://github.com/collie/sheepdog/wiki/Cluster-Management-Backends
later.
> b) be handled gracefully instead of hitting an assert.
>
--
Yunkai Zhang
Work at Taobao
More information about the sheepdog
mailing list