[
https://issues.apache.org/jira/browse/HDFS-7494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Colin Patrick McCabe updated HDFS-7494:
---------------------------------------
Resolution: Fixed
Fix Version/s: 2.7.0
Target Version/s: 2.7.0
Status: Resolved (was: Patch Available)
committed. Thanks, Ted.
> Checking of closed in DFSInputStream#pread() should be protected by
> synchronization
> -----------------------------------------------------------------------------------
>
> Key: HDFS-7494
> URL: https://issues.apache.org/jira/browse/HDFS-7494
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: Ted Yu
> Priority: Minor
> Fix For: 2.7.0
>
> Attachments: hdfs-7494-001.patch, hdfs-7494-002.patch
>
>
> {code}
> private int pread(long position, byte[] buffer, int offset, int length)
> throws IOException {
> // sanity checks
> dfsClient.checkOpen();
> if (closed) {
> {code}
> Checking of closed should be protected by holding lock on
> "DFSInputStream.this"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)