067ec8c2b14fb0929dc348b763383838e06ff8a5
Files Diff
- Added: 2
- Removed: 0
- Renamed: 0
- Modified: 10
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 2 | ||
Rename Method private writeParityCellsForLastStripe() : void renamed to private generateParityCellsForLastStripe() : boolean in class org.apache.hadoop.hdfs.DFSStripedOutputStream | From | To | |
Rename Method public testDatanodeFailure() : void renamed to package runTest(length int) : void in class org.apache.hadoop.hdfs.TestDFSStripedOutputStreamWithFailure | From | To | |
Inline Method | 1 | ||
Inline Method private initConfWithBlockToken(conf Configuration) : void inlined to public testBlockTokenExpired() : void in class org.apache.hadoop.hdfs.TestDFSStripedOutputStreamWithFailure | From | To | |
Change Return Type | 1 | ||
Change Return Type void to boolean in method private generateParityCellsForLastStripe() : boolean in class org.apache.hadoop.hdfs.DFSStripedOutputStream | From | To | |
Extract Method | 4 | ||
Extract Method package getNumBlockWriteRetry() : int extracted from private nextBlockOutputStream() : LocatedBlock in class org.apache.hadoop.hdfs.DataStreamer | From | To | |
Extract Method private newHdfsConfiguration() : HdfsConfiguration extracted from public testBlockTokenExpired() : void in class org.apache.hadoop.hdfs.TestDFSStripedOutputStreamWithFailure | From | To | |
Extract Method private handleStreamerFailure(err String, e Exception, setExternalError boolean) : void extracted from private handleStreamerFailure(err String, e Exception) : void in class org.apache.hadoop.hdfs.DFSStripedOutputStream | From | To | |
Extract Method private newHdfsConfiguration() : HdfsConfiguration extracted from public testDatanodeFailure() : void in class org.apache.hadoop.hdfs.TestDFSStripedOutputStreamWithFailure | From | To | |
Extract And Move Method | 1 | ||
Extract And Move Method private sleep(ms long, op String) : void extracted from package poll(i int) : T in class org.apache.hadoop.hdfs.StripedDataStreamer.ConcurrentPoll & moved to class org.apache.hadoop.hdfs.StripedDataStreamer | From | To |