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

Rakesh R commented on HDFS-8332:
--------------------------------

Attached another patch covers the following APIs other than 
{{listCacheDirectives}} and {{listCachePools}}. Please have a look at it. 
Thanks!
{code}
getBlockSize
getServerDefaults
reportBadBlocks
getBlockLocations
getBlockStorageLocations
createSymlink
setReplication
setStoragePolicy
getStoragePolicies
setSafeMode
refreshNodes
metaSave
setBalancerBandwidth
finalizeUpgrade
rollingUpgrade
getInotifyEventStream
getInotifyEventStream(x)
saveNamespace
rollEdits
restoreFailedStorage
getContentSummary
setQuota
setQuotaByStorageType
{code}

> DistributedFileSystem listCacheDirectives() and listCachePools() API calls 
> should check filesystem closed
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-8332
>                 URL: https://issues.apache.org/jira/browse/HDFS-8332
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Rakesh R
>            Assignee: Rakesh R
>              Labels: BB2015-05-TBR
>         Attachments: HDFS-8332-000.patch, HDFS-8332-001.patch
>
>
> I could see {{listCacheDirectives()}} and {{listCachePools()}} APIs can be 
> called even after the filesystem close. Instead these calls should do 
> {{checkOpen}} and throws:
> {code}
> java.io.IOException: Filesystem closed
>       at org.apache.hadoop.hdfs.DFSClient.checkOpen(DFSClient.java:464)
> {code}



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

Reply via email to