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 "Ted Yu (JIRA)" <ji...@apache.org> on 2014/12/08 23:31:13 UTC
[jira] [Created] (HDFS-7495) Lock inversion in
DFSInputStream#getBlockAt()
Ted Yu created HDFS-7495:
----------------------------
Summary: Lock inversion in DFSInputStream#getBlockAt()
Key: HDFS-7495
URL: https://issues.apache.org/jira/browse/HDFS-7495
Project: Hadoop HDFS
Issue Type: Bug
Reporter: Ted Yu
Priority: Minor
There're two locks: one on DFSInputStream.this , one on DFSInputStream.infoLock
Normally lock is obtained on infoLock, then on DFSInputStream.infoLock
However, such order is not observed in DFSInputStream#getBlockAt() :
{code}
synchronized(infoLock) {
...
if (updatePosition) {
// synchronized not strictly needed, since we only get here
// from synchronized caller methods
synchronized(this) {
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)