hbase/hbase-zookeeper/src
Apekshit Sharma 4f4aac77e1 HBASE-19367 Refactoring in RegionStates, and RSProcedureDispatcher
- Adding javadoc comments
- Bug: ServerStateNode#regions is HashSet but there's no synchronization to prevent concurrent addRegion/removeRegion. Let's use concurrent set instead.
- Use getRegionsInTransitionCount() directly to avoid instead of getRegionsInTransition().size() because the latter copies everything into a new array - what a waste for just the size.
- There's mixed use of getRegionNode and getRegionStateNode for same return type - RegionStateNode. Changing everything to getRegionStateNode. Similarly rename other *RegionNode() fns to *RegionStateNode().
- RegionStateNode#transitionState() return value is useless since it always returns it's first param.
- Other minor improvements
2017-11-29 22:42:39 -08:00
..
main/java/org/apache/hadoop/hbase/zookeeper HBASE-19367 Refactoring in RegionStates, and RSProcedureDispatcher 2017-11-29 22:42:39 -08:00
test/java/org/apache/hadoop/hbase/zookeeper HBASE-19114 Split out o.a.h.h.zookeeper from hbase-server and hbase-client 2017-11-17 13:23:28 -08:00