From 41480233a9cfb0bcfb69cc0f1594120e7656f031 Mon Sep 17 00:00:00 2001 From: Junping Du Date: Wed, 30 Aug 2017 13:30:14 -0700 Subject: [PATCH] HADOOP-14814. Fix incompatible API change on FsServerDefaults to HADOOP-14104. Contributed by Junping Du. --- .../main/java/org/apache/hadoop/fs/FsServerDefaults.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FsServerDefaults.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FsServerDefaults.java index 84a40d2d8c..f6396482d1 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FsServerDefaults.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FsServerDefaults.java @@ -60,6 +60,15 @@ public Writable newInstance() { public FsServerDefaults() { } + public FsServerDefaults(long blockSize, int bytesPerChecksum, + int writePacketSize, short replication, int fileBufferSize, + boolean encryptDataTransfer, long trashInterval, + DataChecksum.Type checksumType) { + this(blockSize, bytesPerChecksum, writePacketSize, replication, + fileBufferSize, encryptDataTransfer, trashInterval, checksumType, + null, (byte) 0); + } + public FsServerDefaults(long blockSize, int bytesPerChecksum, int writePacketSize, short replication, int fileBufferSize, boolean encryptDataTransfer, long trashInterval,