42a1c98597e6dba2e371510a6b2b6b1fb94e4090
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 23
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Change Parameter Type | 1 | ||
Change Parameter Type underRepInOpenFiles : int to underRepInOpenFiles : LightWeightHashSet<Long> in method package set(lowRedundancyBlocksInOpenFiles int, underRepInOpenFiles LightWeightHashSet<Long>, underRepBlocks int, outOfServiceOnlyRep int) : void in class org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor.LeavingServiceStatus | From | To | |
Rename Variable | 1 | ||
Rename Variable lowRedundancyInOpenFiles : int to lowRedundancyBlocksInOpenFiles : int in method private processBlocksInternal(datanode DatanodeDescriptor, it Iterator<BlockInfo>, insufficientList List<BlockInfo>, pruneReliableBlocks boolean) : void in class org.apache.hadoop.hdfs.server.blockmanagement.DatanodeAdminManager.Monitor | From | To | |
Rename Attribute | 1 | ||
Rename Attribute underReplicatedInOpenFiles : int to underReplicatedOpenFiles : LightWeightHashSet<Long> in class org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor.LeavingServiceStatus | From | To | |
Change Variable Type | 1 | ||
Change Variable Type req : ListOpenFilesRequestProto to req : ListOpenFilesRequestProto.Builder in method public listOpenFiles(prevId long, openFilesTypes EnumSet<OpenFilesType>) : BatchedEntries<OpenFileEntry> in class org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type underReplicatedInOpenFiles : int to underReplicatedOpenFiles : LightWeightHashSet<Long> in class org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor.LeavingServiceStatus | From | To | |
Extract Method | 5 | ||
Extract Method public listOpenFiles(prevId long, openFilesTypes EnumSet<OpenFilesType>) : BatchedEntries<OpenFileEntry> extracted from public listOpenFiles(prevId long) : BatchedEntries<OpenFileEntry> in class org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB | From | To | |
Extract Method protected startCluster(numNameNodes int, numDatanodes int, setupHostsFile boolean, nodesCapacity long[], checkDataNodeHostConfig boolean, federation boolean) : void extracted from protected startCluster(numNameNodes int, numDatanodes int, setupHostsFile boolean, nodesCapacity long[], checkDataNodeHostConfig boolean) : void in class org.apache.hadoop.hdfs.AdminStatesBaseTest | From | To | |
Extract Method public listOpenFiles(prevId long, openFilesTypes EnumSet<OpenFilesType>) : BatchedEntries<OpenFileEntry> extracted from public listOpenFiles(arg0 long) : BatchedEntries<OpenFileEntry> in class org.apache.hadoop.hdfs.server.federation.router.RouterRpcServer | From | To | |
Extract Method public listOpenFiles(prevId long, openFilesTypes EnumSet<OpenFilesType>) : BatchedEntries<OpenFileEntry> extracted from public listOpenFiles(prevId long) : BatchedEntries<OpenFileEntry> in class org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer | From | To | |
Extract Method private verifyOpenFiles(openFiles Map<Path,FSDataOutputStream>, openFilesTypes EnumSet<OpenFilesType>) : void extracted from private verifyOpenFiles(openFiles Map<Path,FSDataOutputStream>) : void in class org.apache.hadoop.hdfs.server.namenode.TestListOpenFiles | From | To | |
Rename Parameter | 1 | ||
Rename Parameter arg0 : long to prevId : long in method public listOpenFiles(prevId long) : BatchedEntries<OpenFileEntry> in class org.apache.hadoop.hdfs.server.federation.router.RouterRpcServer | From | To |