hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-7494) Checking of closed in DFSInputStream#pread() should be protected by synchronization
Date Wed, 17 Dec 2014 14:36:13 GMT

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

Hudson commented on HDFS-7494:
------------------------------

FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #41 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/41/])
HDFS-7494. Checking of closed in DFSInputStream#pread() should be protected by synchronization
(Ted Yu via Colin P. McCabe) (cmccabe: rev a97a1e73177974cff8afafad6ca43a96563f3c61)
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java


> 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)

Mime
View raw message