You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Dmitry Lazurkin <di...@gmail.com> on 2019/04/08 14:45:13 UTC
How to automatic reset state of lost partitions?
Hello,
I have 3 nodes with backups=1 and partitionLostPolicy=READ_WRITE_SAFE.
Node-2 and node-3 own partition 2. I shutdown node-2 and node-3. After
that cluster has partition 2 in state=LOST.
Now I should call resetLostPartitions for restore state of partition 2.
For now I see only one way for automation of this process:
- Wait all nodes from baseline toplogy
- Check existence of lost partitions in cluster
- Call Ignite#resetLostPartitions
Is it good? Does someone know better solution?
Thank you.
Re: How to automatic reset state of lost partitions?
Posted by aealexsandrov <ae...@gmail.com>.
Hi,
Yes, it's the correct solution.
Note that resetLostPartitions just returned the partitions to a normal
state. So it makes sense to call it when all nodes from baseline will be
online.
In case if you have 3 nodes with 1 backup for all caches and two nodes go
down and only one node back then better will be setting a new baseline for
that 2 nodes. The data should be rebalanced in this case.
BR,
Andrei
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/