You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Yongjun Zhang (JIRA)" <ji...@apache.org> on 2014/07/30 17:11:39 UTC
[jira] [Created] (HDFS-6788) Improve synchronization in
BPOfferService with read write lock
Yongjun Zhang created HDFS-6788:
-----------------------------------
Summary: Improve synchronization in BPOfferService with read write lock
Key: HDFS-6788
URL: https://issues.apache.org/jira/browse/HDFS-6788
Project: Hadoop HDFS
Issue Type: Bug
Affects Versions: 2.5.0
Reporter: Yongjun Zhang
Assignee: Yongjun Zhang
Threads in DN (DataXceiver, PacketResponder, Async disk worker etc) may block at BPOfferService.getBlockPoolId() when calling BPOfferService.checkBlock(), though they are just reading the same blockpool id. This is unnecessary overhead and may cause trouble when many threads exist. Filing this jira to replace synchronized method with read write lock (ReentrantReadWriteLock).
--
This message was sent by Atlassian JIRA
(v6.2#6252)