[
https://issues.apache.org/jira/browse/HDFS-5450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Wang updated HDFS-5450:
------------------------------
Attachment: hdfs-5450-4.patch
Here's a patch that stubs out the mlock for that test class, and adds the
missing license header.
I also fixed up the stubbing in TestFsDatasetCache. We should save and restore
the mlocker for each test since it's a static variable. Not doing this could
possibly cause hard-to-debug issues due to non-deterministic test ordering.
> better API for getting the cached blocks locations
> --------------------------------------------------
>
> Key: HDFS-5450
> URL: https://issues.apache.org/jira/browse/HDFS-5450
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: hdfs-client
> Affects Versions: 3.0.0
> Reporter: Colin Patrick McCabe
> Assignee: Andrew Wang
> Priority: Minor
> Attachments: hdfs-5450-1.patch, hdfs-5450-2.patch, hdfs-5450-3.patch,
> hdfs-5450-4.patch
>
>
> Currently, we have to downcast the {{BlockLocation}] to {{HdfsBlockLocation}}
> to get information about whether a replica is cached. We should have this
> information in {{BlockLocation}} instead.
--
This message was sent by Atlassian JIRA
(v6.1#6144)