cd655ee817a3307bc1a1a119eb4266978ecd7fb2
Files Diff
- Added: 1
- Removed: 1
- Renamed: 0
- Modified: 5
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Move And Inline Method | 1 | ||
Move And Inline Method public setMissingBlockIndices(missingBlockIndicies short[]) : void moved from class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.ErasureCodingWork to class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager & inlined to package computeRecoveryWorkForBlocks(blocksToRecover List<List<BlockInfo>>) : int | From | To | |
Rename Variable | 1 | ||
Rename Variable missingBlockArray : short[] to indices : short[] in method package computeRecoveryWorkForBlocks(blocksToRecover List<List<BlockInfo>>) : int in class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Merge Variable | 1 | ||
Merge Variable [missingBlockIndices : List<Short>, numSourceNodes : int] to liveBlockIndices : List<Short> in method package computeRecoveryWorkForBlocks(blocksToRecover List<List<BlockInfo>>) : int in class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Rename Attribute | 1 | ||
Rename Attribute missingBlockIndices : short[] to liveBlockIndices : short[] in class org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor.BlockECRecoveryInfo | From | To | |
Change Variable Type | 1 | ||
Change Variable Type srcNodes : LinkedList<DatanodeDescriptor> to srcNodes : List<DatanodeDescriptor> in method package chooseSourceDatanodes(block BlockInfo, containingNodes List<DatanodeDescriptor>, nodesContainingLiveReplicas List<DatanodeStorageInfo>, numReplicas NumberReplicas, liveBlockIndices List<Short>, priority int) : DatanodeDescriptor[] in class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Extract Variable | 1 | ||
Extract Variable isStriped : boolean in method package chooseSourceDatanodes(block BlockInfo, containingNodes List<DatanodeDescriptor>, nodesContainingLiveReplicas List<DatanodeStorageInfo>, numReplicas NumberReplicas, liveBlockIndices List<Short>, priority int) : DatanodeDescriptor[] from class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Rename Parameter | 3 | ||
Rename Parameter missingBlockIndices : short[] to liveBlockIndices : short[] in method package BlockECRecoveryInfo(block ExtendedBlock, sources DatanodeDescriptor[], targets DatanodeStorageInfo[], liveBlockIndices short[]) in class org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor.BlockECRecoveryInfo | From | To | |
Rename Parameter missingBlockIndices : List<Short> to liveBlockIndices : List<Short> in method package chooseSourceDatanodes(block BlockInfo, containingNodes List<DatanodeDescriptor>, nodesContainingLiveReplicas List<DatanodeStorageInfo>, numReplicas NumberReplicas, liveBlockIndices List<Short>, priority int) : DatanodeDescriptor[] in class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Rename Parameter missingBlockIndicies : short[] to liveBlockIndices : short[] in method package addBlockToBeErasureCoded(block ExtendedBlock, sources DatanodeDescriptor[], targets DatanodeStorageInfo[], liveBlockIndices short[]) : void in class org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor | From | To |