From 5c32c4b2e4589a5ad3417cf0d3ebb3f177f5e2f7 Mon Sep 17 00:00:00 2001 From: cnauroth Date: Wed, 17 Dec 2014 14:52:14 -0800 Subject: [PATCH] HADOOP-10809. SyncableDataOutputStream must implement sync method on branch-2. --- .../apache/hadoop/fs/azure/SyncableDataOutputStream.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/SyncableDataOutputStream.java b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/SyncableDataOutputStream.java index 9bec7a5c2ce..58ac326ede6 100644 --- a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/SyncableDataOutputStream.java +++ b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/SyncableDataOutputStream.java @@ -36,6 +36,12 @@ public SyncableDataOutputStream(OutputStream out) { super(out); } + @Override + @Deprecated + public void sync() throws IOException { + hflush(); + } + @Override public void hflush() throws IOException { if (out instanceof Syncable) {