On Wed, Feb 27, 2019 at 4:15 AM wxn...@zjqunshuo.com <wxn...@zjqunshuo.com>
wrote:

> >After restart with the new address the server will notice it and log a
> warning, but it will keep token ownership as long as it keeps the old host
> id (meaning it must use the same data directory as before restart).
>
> Based on my understanding, token range is binded to host id. As long as
> host id doesn't change, everything is ok. Besides data directory, any other
> thing can lead to host id change? And how host id is caculated? For
> example, if I upgrade Cassandra binary to a new version, after restart,
> will host id change?
>

I believe host id is calculated once the new node is initialized and never
changes afterwards, even through major upgrades.  It is stored in system
keyspace in data directory, and is stable across restarts.

--
Alex

Reply via email to