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

Arpit Agarwal commented on HDFS-11277:
--------------------------------------

[~manju_hadoop], there shouldn't be multiple FsVolumeImpl objects for the same 
volume. So the object identity check is fine.

> Implement equals and hashcode in FsVolumeSpi implementations
> ------------------------------------------------------------
>
>                 Key: HDFS-11277
>                 URL: https://issues.apache.org/jira/browse/HDFS-11277
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: datanode
>            Reporter: Manjunath Anand
>
> Certain of the implementations of FsVolumeSpi say for eg:- FsVolumeImpl can 
> implement equals and hashcode. This is to avoid object identity check during 
> disk check scheduling in ThrottledAsyncChecker and instead use other means of 
> checking whether a diskcheck is already in progress or not for  FsVolumeImpl 
> object.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to