HDFS-3280. DFSOutputStream.sync should not be synchronized. Contributed by Todd Lipcon.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1326049 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Todd Lipcon 2012-04-14 02:51:09 +00:00
parent 204f4d83f3
commit 567778d5c0
2 changed files with 3 additions and 1 deletions

View File

@ -395,6 +395,8 @@ Release 2.0.0 - UNRELEASED
HDFS-2765. TestNameEditsConfigs is incorrectly swallowing IOE. (atm)
HDFS-3280. DFSOutputStream.sync should not be synchronized (todd)
BREAKDOWN OF HDFS-1623 SUBTASKS
HDFS-2179. Add fencing framework and mechanisms for NameNode HA. (todd)

View File

@ -1418,7 +1418,7 @@ class DFSOutputStream extends FSOutputSummer implements Syncable {
@Override
@Deprecated
public synchronized void sync() throws IOException {
public void sync() throws IOException {
hflush();
}