d8ea443af0b1c8289a1dd738945831ff8be0e9c1
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 8
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Change Parameter Type | 1 | ||
Change Parameter Type blk : Block to blk : BlockInfo in method package makeLocatedBlock(fsn FSNamesystem, blk BlockInfo, locs DatanodeStorageInfo[], offset long) : LocatedBlock in class org.apache.hadoop.hdfs.server.namenode.FSDirWriteFileOp | From | To | |
Rename Variable | 1 | ||
Rename Variable replication : int to numTargets : short in method package validateAddBlock(fsn FSNamesystem, pc FSPermissionChecker, src String, fileId long, clientName String, previous ExtendedBlock, onRetryBlock LocatedBlock[]) : ValidateAddBlockResult in class org.apache.hadoop.hdfs.server.namenode.FSDirWriteFileOp | From | To | |
Change Return Type | 1 | ||
Change Return Type BlockInfoContiguous to BlockInfo in method private addBlock(fsd FSDirectory, path String, inodesInPath INodesInPath, block Block, targets DatanodeStorageInfo[], isStriped boolean) : BlockInfo in class org.apache.hadoop.hdfs.server.namenode.FSDirWriteFileOp | From | To | |
Rename Attribute | 1 | ||
Rename Attribute replication : int to numTargets : int in class org.apache.hadoop.hdfs.server.namenode.FSDirWriteFileOp.ValidateAddBlockResult | From | To | |
Extract Variable | 1 | ||
Extract Variable numLocations : short in method private addBlock(fsd FSDirectory, path String, inodesInPath INodesInPath, block Block, targets DatanodeStorageInfo[], isStriped boolean) : BlockInfo from class org.apache.hadoop.hdfs.server.namenode.FSDirWriteFileOp | From | To | |
Change Variable Type | 5 | ||
Change Variable Type uc : BlockInfoContiguousUnderConstruction to uc : BlockInfoUnderConstruction in method package unprotectedRemoveBlock(fsd FSDirectory, path String, iip INodesInPath, fileNode INodeFile, block Block) : boolean in class org.apache.hadoop.hdfs.server.namenode.FSDirWriteFileOp | From | To | |
Change Variable Type b : BlockInfoContiguous to b : BlockInfo in method private saveAllocatedBlock(fsn FSNamesystem, src String, inodesInPath INodesInPath, newBlock Block, targets DatanodeStorageInfo[], isStriped boolean) : void in class org.apache.hadoop.hdfs.server.namenode.FSDirWriteFileOp | From | To | |
Change Variable Type lastBlockUC : BlockInfoContiguousUnderConstruction to lastBlockUC : BlockInfoUnderConstruction in method private analyzeFileState(fsn FSNamesystem, src String, fileId long, clientName String, previous ExtendedBlock, onRetryBlock LocatedBlock[]) : FileState in class org.apache.hadoop.hdfs.server.namenode.FSDirWriteFileOp | From | To | |
Change Variable Type lastBlockInFile : BlockInfoContiguous to lastBlockInFile : BlockInfo in method package storeAllocatedBlock(fsn FSNamesystem, src String, fileId long, clientName String, previous ExtendedBlock, targets DatanodeStorageInfo[]) : LocatedBlock in class org.apache.hadoop.hdfs.server.namenode.FSDirWriteFileOp | From | To | |
Change Variable Type replication : int to numTargets : short in method package validateAddBlock(fsn FSNamesystem, pc FSPermissionChecker, src String, fileId long, clientName String, previous ExtendedBlock, onRetryBlock LocatedBlock[]) : ValidateAddBlockResult in class org.apache.hadoop.hdfs.server.namenode.FSDirWriteFileOp | From | To | |
Rename Parameter | 1 | ||
Rename Parameter replication : int to numTargets : int in method package ValidateAddBlockResult(blockSize long, numTargets int, storagePolicyID byte, clientMachine String) in class org.apache.hadoop.hdfs.server.namenode.FSDirWriteFileOp.ValidateAddBlockResult | From | To |