[sheepdog] [PATCH 2/2] sheep: check joining nodes with newer but invalid epoch

Hitoshi Mitake mitake.hitoshi at gmail.com
Tue May 14 18:49:18 CEST 2013


At Wed, 15 May 2013 00:20:38 +0900,
MORITA Kazutaka wrote:
> 
> From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
> 
> Currently, cluster_wait_for_join_check() always returns
> CJ_RES_MASTER_TRANSFER if the joining node has a newer epoch.
> However, we have to take into account that the node has a wrong epoch
> (e.g. the node comes from a different cluster).

IIUC, checking the clusters which the nodes belong to is done by
comparing ctimes. So I think master transfer is a correct behavior if
the joining node has a larger epoch.

Thanks,
Hitoshi




More information about the sheepdog mailing list