3b83110d5ed582b9f913ecf3f62ce410535f8fca
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 25
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method public enableSPS() : void renamed to public enableInternalSPS() : void in class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Change Parameter Type | 1 | ||
Change Parameter Type expected : boolean to expected : StoragePolicySatisfierMode in method package verifySPSEnabled(nameNode NameNode, property String, expected StoragePolicySatisfierMode, isSatisfierRunning boolean) : void in class org.apache.hadoop.hdfs.server.namenode.TestNameNodeReconfigure | From | To | |
Change Return Type | 1 | ||
Change Return Type void to long in method private processPath(startID long, fullPath String) : long in class org.apache.hadoop.hdfs.server.sps.ExternalSPSFileIDCollector | From | To | |
Rename Class | 1 | ||
Rename Class org.apache.hadoop.hdfs.tools.StoragePolicyAdmin.IsSatisfierRunningCommand renamed to org.apache.hadoop.hdfs.tools.StoragePolicyAdmin.IsInternalSatisfierRunningCommand | From | To | |
Replace Variable With Attribute | 9 | ||
Replace Variable With Attribute cluster : MiniDFSCluster to hdfsCluster : MiniDFSCluster in method public testSPSWhenFileLengthIsZero() : void in class org.apache.hadoop.hdfs.server.namenode.sps.TestStoragePolicySatisfier | From | To | |
Replace Variable With Attribute conf : Configuration to config : Configuration in method public testSPSWhenFileHasLowRedundancyBlocks() : void in class org.apache.hadoop.hdfs.server.namenode.sps.TestStoragePolicySatisfier | From | To | |
Replace Variable With Attribute cluster : MiniDFSCluster to hdfsCluster : MiniDFSCluster in method public testSPSForEmptyDirectory() : void in class org.apache.hadoop.hdfs.server.namenode.sps.TestStoragePolicySatisfier | From | To | |
Replace Variable With Attribute cluster : MiniDFSCluster to hdfsCluster : MiniDFSCluster in method public testSPSForNonExistDirectory() : void in class org.apache.hadoop.hdfs.server.namenode.sps.TestStoragePolicySatisfier | From | To | |
Replace Variable With Attribute cluster : MiniDFSCluster to hdfsCluster : MiniDFSCluster in method public testSPSWithDirectoryTreeWithoutFile() : void in class org.apache.hadoop.hdfs.server.namenode.sps.TestStoragePolicySatisfier | From | To | |
Replace Variable With Attribute cluster : MiniDFSCluster to hdfsCluster : MiniDFSCluster in method public testSPSWhenFileHasLowRedundancyBlocks() : void in class org.apache.hadoop.hdfs.server.namenode.sps.TestStoragePolicySatisfier | From | To | |
Replace Variable With Attribute conf : Configuration to config : Configuration in method public testSPSWhenFileHasExcessRedundancyBlocks() : void in class org.apache.hadoop.hdfs.server.namenode.sps.TestStoragePolicySatisfier | From | To | |
Replace Variable With Attribute cluster : MiniDFSCluster to hdfsCluster : MiniDFSCluster in method public testSPSWhenFileHasExcessRedundancyBlocks() : void in class org.apache.hadoop.hdfs.server.namenode.sps.TestStoragePolicySatisfier | From | To | |
Replace Variable With Attribute cluster : MiniDFSCluster to hdfsCluster : MiniDFSCluster in method public restartNamenode() : void in class org.apache.hadoop.hdfs.server.namenode.sps.TestStoragePolicySatisfier | From | To | |
Rename Attribute | 2 | ||
Rename Attribute spsEnabled : boolean to spsMode : StoragePolicySatisfierMode in class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Rename Attribute DFS_STORAGE_POLICY_SATISFIER_ENABLED_KEY : String to DFS_STORAGE_POLICY_SATISFIER_MODE_KEY : String in class org.apache.hadoop.hdfs.DFSConfigKeys | From | To | |
Extract Method | 3 | ||
Extract Method public restartNamenode() : void extracted from public testSPSWhenFileHasLowRedundancyBlocks() : void in class org.apache.hadoop.hdfs.server.namenode.sps.TestStoragePolicySatisfier | From | To | |
Extract Method public restartNamenode() : void extracted from public testSatisfyWithExceptions() : void in class org.apache.hadoop.hdfs.server.namenode.sps.TestStoragePolicySatisfier | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type spsEnabled : boolean to spsMode : StoragePolicySatisfierMode in class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To |