Details
Description
In a research project, we analyzed the source code of Hadoop looking for comments with on-hold SATDs (self-admitted technical debt) that could be fixed already. An on-hold SATD is a TODO/FIXME comment blocked by an issue. If this blocking issue is already resolved, the related todo can be implemented (or sometimes it is already implemented, but the comment is left in the code causing confusions). As we found a few instances of these in Hadoop, we decided to collect them in a ticket, so they are documented and can be addressed sooner or later.
A list of code comments that mention already closed issues.
- A code comment suggests making the setJobConf method deprecated along with a mapred package
HADOOP-1230.HADOOP-1230has been closed a long time ago, but the method is still not annotated as deprecated./** * This code is to support backward compatibility and break the compile * time dependency of core on mapred. * This should be made deprecated along with the mapred package HADOOP-1230. * Should be removed when mapred package is removed. */
Comment location: https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ReflectionUtils.java#L88
- A comment mentions that the return type of the getDefaultFileSystem method should be changed to AFS when
HADOOP-6223is completed.
Indeed, this change was done in the related commit ofHADOOP-6223: (https://github.com/apache/hadoop/commit/3f371a0a644181b204111ee4e12c995fc7b5e5f5#diff-cd86a2b9ce3efd2232c2ace0e9084508L395)
Thus, the comment could be removed.@InterfaceStability.Unstable /* return type will change to AFS once HADOOP-6223 is completed */
Comment location: https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileContext.java#L512
Attachments
Attachments
1.
|
Drop MRv1 binary compatibility in 4.0.0 | Open | Unassigned |