While in the middle of traversing through the iterator in the periodic execution of punctuate method, if a rebalance occurs would the below loop stop OR throw an exception? Or would it resume automatically, if so would it resume with the same partition shard?
KeyValue<String, House> curr;
KeyValueIterator<String, House> houseIterator = houseStore.all();
while (houseIterator.hasNext()) {
j++;
curr = houseIterator.next();
houseStore.delete(curr.key);
}
houseIterator.close();