6b20a0f831b195c6f136a3decee61f1d80ebde29
Files Diff
- Added: 2
- Removed: 0
- Renamed: 0
- Modified: 27
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Variable | 1 | ||
Rename Variable servername : ServerName to servers : List<ServerName> in method public getMetaRegionLocation() : RegionLocations in class org.apache.hadoop.hbase.client.ZooKeeperRegistry | From | To | |
Extract Variable | 2 | ||
Extract Variable modifiedFlushCheckInterval : long in method package shouldFlush() : boolean from class org.apache.hadoop.hbase.regionserver.HRegion | From | To | |
Extract Variable noProblem : boolean in method package checkMetaRegion() : boolean from class org.apache.hadoop.hbase.util.HBaseFsck | From | To | |
Change Variable Type | 1 | ||
Change Variable Type servername : ServerName to servers : List<ServerName> in method public getMetaRegionLocation() : RegionLocations in class org.apache.hadoop.hbase.client.ZooKeeperRegistry | From | To | |
Extract Method | 9 | ||
Extract Method public verifyMetaRegionLocation(hConnection HConnection, zkw ZooKeeperWatcher, timeout long, replicaId int) : boolean extracted from public verifyMetaRegionLocation(hConnection HConnection, zkw ZooKeeperWatcher, timeout long) : boolean in class org.apache.hadoop.hbase.zookeeper.MetaTableLocator | From | To | |
Extract Method public getMetaRegions(zkw ZooKeeperWatcher, replicaId int) : List<HRegionInfo> extracted from public getMetaRegions(zkw ZooKeeperWatcher) : List<HRegionInfo> in class org.apache.hadoop.hbase.zookeeper.MetaTableLocator | From | To | |
Extract Method private assignMetaReplica(replicaId int) : void extracted from package checkMetaRegion() : boolean in class org.apache.hadoop.hbase.util.HBaseFsck | From | To | |
Extract Method public setMetaLocation(zookeeper ZooKeeperWatcher, serverName ServerName, replicaId int, state RegionState.State) : void extracted from public setMetaLocation(zookeeper ZooKeeperWatcher, serverName ServerName, state RegionState.State) : void in class org.apache.hadoop.hbase.zookeeper.MetaTableLocator | From | To | |
Extract Method public blockUntilAvailable(zkw ZooKeeperWatcher, replicaId int, timeout long) : ServerName extracted from public blockUntilAvailable(zkw ZooKeeperWatcher, timeout long) : ServerName in class org.apache.hadoop.hbase.zookeeper.MetaTableLocator | From | To | |
Extract Method public getMetaRegionsAndLocations(zkw ZooKeeperWatcher, replicaId int) : List<Pair<HRegionInfo,ServerName>> extracted from public getMetaRegionsAndLocations(zkw ZooKeeperWatcher) : List<Pair<HRegionInfo,ServerName>> in class org.apache.hadoop.hbase.zookeeper.MetaTableLocator | From | To | |
Extract Method public getMetaRegionState(zkw ZooKeeperWatcher, replicaId int) : RegionState extracted from public getMetaRegionState(zkw ZooKeeperWatcher) : RegionState in class org.apache.hadoop.hbase.zookeeper.MetaTableLocator | From | To | |
Extract Method public waitMetaRegionLocation(zkw ZooKeeperWatcher, replicaId int, timeout long) : ServerName extracted from public waitMetaRegionLocation(zkw ZooKeeperWatcher, timeout long) : ServerName in class org.apache.hadoop.hbase.zookeeper.MetaTableLocator | From | To | |
Extract Method public deleteMetaLocation(zookeeper ZooKeeperWatcher, replicaId int) : void extracted from public deleteMetaLocation(zookeeper ZooKeeperWatcher) : void in class org.apache.hadoop.hbase.zookeeper.MetaTableLocator | From | To |