# Rebalance would affect mutate?

**URL:** <https://discuss.dgraph.io/t/rebalance-would-affect-mutate/5564>\
**Category:** Dgraph\
**Created:** [December 4, 2019, 4:14am UTC](https://discuss.dgraph.io/t/rebalance-would-affect-mutate/5564 "2019-12-04T04:14:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Willem520](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/willem520/32/2503_2.png) [@Willem520](https://discuss.dgraph.io/u/Willem520)\
**Post date:** [December 4, 2019, 4:14am UTC](https://discuss.dgraph.io/t/rebalance-would-affect-mutate/5564/1 "2019-12-04T04:14:03Z")

</div>

my system is simple designed like this(user push node info to kafka,and another part will consume the message and muate it into dgraph)  
I found it often occur error  
 ![image](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/2/287189e6aaec96ff1d5f6113ff6ec93c6f2c90fa.png)  
and  
 ![image](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/d/d30ed5705065a666f048e95b3114b7e06fb64af7.png)  
it makes some data lost.

I have some question:  
1.why the leader often change,the total data is 2million. I don’t think the dataset is too large  
2.rebalance would affect mutation? when I muate a predicate to one node,at the same time, the relalance would move the same predicate,how does dgraph perform

---

<div class="post-metadata">

**Author:** ![bcyyl](https://avatars.discourse-cdn.com/v4/letter/b/ec9cab/32.png) [@bcyyl](https://discuss.dgraph.io/u/bcyyl)\
**Post date:** [December 4, 2019, 5:27am UTC](https://discuss.dgraph.io/t/rebalance-would-affect-mutate/5564/2 "2019-12-04T05:27:49Z")

</div>

When dgraph zero move the predicate from one to another, the mutation is not available

---

<div class="post-metadata">

**Author:** ![Willem520](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/willem520/32/2503_2.png) [@Willem520](https://discuss.dgraph.io/u/Willem520)\
**Post date:** [December 4, 2019, 6:35am UTC](https://discuss.dgraph.io/t/rebalance-would-affect-mutate/5564/3 "2019-12-04T06:35:32Z")

</div>

it means rebalance and mutate could not work concurrently?

---

<div class="post-metadata">

**Author:** ![bcyyl](https://avatars.discourse-cdn.com/v4/letter/b/ec9cab/32.png) [@bcyyl](https://discuss.dgraph.io/u/bcyyl)\
**Post date:** [December 4, 2019, 6:47am UTC](https://discuss.dgraph.io/t/rebalance-would-affect-mutate/5564/4 "2019-12-04T06:47:36Z")

</div>

Yes, the dgraph team could provide more detail about this
