[ 
https://issues.apache.org/jira/browse/YARN-11765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17927027#comment-17927027
 ] 

ASF GitHub Bot commented on YARN-11765:
---------------------------------------

yangjiandan commented on code in PR #7352:
URL: https://github.com/apache/hadoop/pull/7352#discussion_r1955488222


##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/Clock.java:
##########
@@ -23,7 +23,11 @@
 
 /**
  * A simple clock interface that gives you time.
+ * @deprecated This class has been moved to {@link 
org.apache.hadoop.util.Clock}
+ * in hadoop-common-project and will be removed in Hadoop 4.0.0.

Review Comment:
   Thanks for the suggestion! That makes sence. I'll update the comments to 
remove the version reference and just indicate the intent to remove it in the 
future. 





> Refactor: Move Clock Class from hadoop-mapreduce-project to 
> hadoop-common-project for Reusability
> -------------------------------------------------------------------------------------------------
>
>                 Key: YARN-11765
>                 URL: https://issues.apache.org/jira/browse/YARN-11765
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: yarn, yarn-common
>            Reporter: Jiandan Yang 
>            Assignee: Jiandan Yang 
>            Priority: Major
>              Labels: pull-request-available
>
> *Background:*
>  
> Currently, both hadoop-mapreduce-project and hadoop-yarn-project define their 
> own versions of the Clock class. This leads to redundant class definitions 
> across different Hadoop subprojects, reducing maintainability and code 
> reusability.
>  
> To {*}avoid duplicate definitions and improve class reuse{*}, we propose 
> *moving the* Clock *class from* hadoop-mapreduce-project *to* 
> hadoop-common-project, making it available as a shared utility for all Hadoop 
> components.
>  
> *Proposal:*
> 1.{*}Move the{*} Clock *interface and its implementions from* 
> hadoop-mapreduce-project *to* hadoop-common-project, ensuring it becomes a 
> shared utility accessible to all subprojects.
> 2. *Update all references* in hadoop-mapreduce-project and 
> hadoop-yarn-project to use the newly relocated Clock class in 
> hadoop-common-project.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to