Description
Steps to reproduce are as follows:
1. Create a table
create "test", "cf"
2. Take a snapshot for the table
snapshot "test", "snap"
3. Load data to the table
(0...2000).each{|i| put "test", "row#{i}", "cf:col", "val"}
4. Split regions of the table
split "test"
5. Restore the table from the snapshot
disable "test" restore_snapshot "snap" enable "test"
The number of Offline Regions is as follows:
The number of Offline Regions should be zero.
It seems like when regions are removed by restoring a snapshot, the number of Offline Regions becomes wrong. And as far as I reviewed the code, it seems like the Offline Regions will not be cleaned up. After restarting Master, the offline regions disappear.