hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-7494) Checking of closed in DFSInputStream#pread() should be protected by synchronization
Date Mon, 08 Dec 2014 22:26:12 GMT
Ted Yu created HDFS-7494:
----------------------------

             Summary: 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
            Priority: Minor


{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