incubator-cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 夏帆 <xiafa...@gmail.com>
Subject Re: when a node jumps from joining to normal
Date Tue, 20 Dec 2011 01:59:02 GMT
StorageService.joinTokenRing will only execute bootstrap(token) if the node
boostraps. setToken is executed during a non-bootstrap startup. By the way,
the version of the source codes is 1.0.0-rc1.

On Tue, Dec 20, 2011 at 1:57 AM, Brandon Williams <driftx@gmail.com> wrote:

> On Mon, Dec 19, 2011 at 1:19 AM, 夏帆 <xiafan68@gmail.com> wrote:
> >     Recently I try to find out when a bootstraping node jumps from
> > joinning state to normal. I read the source code related to bootstrap and
> > have not found the codes updating the state of the node to be  normal. In
> > Bootstrapper.bootStrap(), the code
> > "StorageService.instance.finishBootStrapping()" is invokled at last, but
> > update of the Application status is not found. I am wondering whether
> there
> > is another thread that will update the status.
>
> StorageService.joinTokenRing does it near the bottom by calling setToken.
>
> -Brandon
>



-- 
Best Regards!

fan xia

Institute of Massive Computing
Software Engineering Institute
East China Normal University
NO.109(West), Math Building, NO.3663, Zhongshan Road(North), Shanghai, China

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message