You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Andrew Wang (JIRA)" <ji...@apache.org> on 2014/05/13 04:29:15 UTC
[jira] [Updated] (HDFS-6345) DFS.listCacheDirectives() should allow
filtering based on cache directive ID
[ https://issues.apache.org/jira/browse/HDFS-6345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Wang updated HDFS-6345:
------------------------------
Attachment: hdfs-6345-1.patch
Patch attached. I did manual testing with a branch-2 NN and the new client, verified that it still filters correctly, and that we get the same exception thrown on error.
> DFS.listCacheDirectives() should allow filtering based on cache directive ID
> ----------------------------------------------------------------------------
>
> Key: HDFS-6345
> URL: https://issues.apache.org/jira/browse/HDFS-6345
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: caching
> Affects Versions: 2.4.0
> Reporter: Lenni Kuff
> Assignee: Andrew Wang
> Attachments: hdfs-6345-1.patch
>
>
> DFS.listCacheDirectives() should allow filtering based on cache directive ID. Currently it throws an exception.
> For example:
> {code}
> long directiveId = <some id value>;
> CacheDirectiveInfo filter = new CacheDirectiveInfo.Builder()
> .setId(directiveId)
> .build();
> RemoteIterator<CacheDirectiveEntry> itr = dfs.listCacheDirectives(filter);
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)