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

ASF GitHub Bot commented on HDFS-17884:
---------------------------------------

pan3793 opened a new pull request, #8268:
URL: https://github.com/apache/hadoop/pull/8268

   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: 
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 
'HADOOP-17799. Your PR title ...'.
   -->
   
   ### Description of PR
   
   Those classes were forked from Guava in HDFS-11511. During those days, 
Hadoop used Guava 11, which didn't support `TimeoutFuture`.
   
   Now Hadoop uses Guava 33, so it's unnecessary to maintain those forked 
classes, this change simplifies the codebase, also eliminates `sun.misc.Unsafe` 
usage.
   
   ### How was this patch tested?
   
   Pass UT added by HDFS-11511
   
   ```
   $ ./mvnw -pl :hadoop-hdfs -am clean install -DskipTests
   $ ./mvnw -pl :hadoop-hdfs test 
"-Dtest=org.apache.hadoop.hdfs.server.datanode.checker.Test*"
   ...
   [INFO] -------------------------------------------------------
   [INFO]  T E S T S
   [INFO] -------------------------------------------------------
   [INFO] Running 
org.apache.hadoop.hdfs.server.datanode.checker.TestDatasetVolumeChecker
   OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader 
classes because bootstrap classpath has been appended
   [INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.991 s 

> Remove forked Guava TimeoutFuture
> ---------------------------------
>
>                 Key: HDFS-17884
>                 URL: https://issues.apache.org/jira/browse/HDFS-17884
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs
>            Reporter: Cheng Pan
>            Priority: Major
>




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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to