Description
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() :
synchronized(infoLock) { ... if (updatePosition) { // synchronized not strictly needed, since we only get here // from synchronized caller methods synchronized(this) {
Attachments
Attachments
Issue Links
- is related to
-
HDFS-6735 A minor optimization to avoid pread() be blocked by read() inside the same DFSInputStream
- Closed