aboutsummaryrefslogtreecommitdiff
path: root/other/java/hdfs3
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-08-03 09:11:24 -0700
committerChris Lu <chris.lu@gmail.com>2020-08-03 09:11:24 -0700
commit15dc0a704db7aa542471b56f10ceb749dc041b12 (patch)
treec423081dc295a224046e6778be0858d4c2d6fbb8 /other/java/hdfs3
parentb3089dcc8eaf9b1018bab68bb64e4fa3af6f4bd6 (diff)
downloadseaweedfs-15dc0a704db7aa542471b56f10ceb749dc041b12.tar.xz
seaweedfs-15dc0a704db7aa542471b56f10ceb749dc041b12.zip
Revert "add read ahead input stream"
This reverts commit b3089dcc8eaf9b1018bab68bb64e4fa3af6f4bd6.
Diffstat (limited to 'other/java/hdfs3')
-rw-r--r--other/java/hdfs3/src/main/java/seaweed/hdfs/SeaweedFileSystem.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/other/java/hdfs3/src/main/java/seaweed/hdfs/SeaweedFileSystem.java b/other/java/hdfs3/src/main/java/seaweed/hdfs/SeaweedFileSystem.java
index 836bb4db5..fd8877806 100644
--- a/other/java/hdfs3/src/main/java/seaweed/hdfs/SeaweedFileSystem.java
+++ b/other/java/hdfs3/src/main/java/seaweed/hdfs/SeaweedFileSystem.java
@@ -11,7 +11,6 @@ import org.apache.hadoop.util.Progressable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import seaweedfs.client.FilerProto;
-import seaweedfs.client.ReadAheadInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
@@ -77,7 +76,7 @@ public class SeaweedFileSystem extends FileSystem {
try {
FSInputStream inputStream = seaweedFileSystemStore.openFileForRead(path, statistics, bufferSize);
- return new FSDataInputStream(new ReadAheadInputStream(inputStream, 16 * 1024 * 1024));
+ return new FSDataInputStream(new BufferedFSInputStream(inputStream, 16 * 1024 * 1024));
} catch (Exception ex) {
LOG.warn("open path: {} bufferSize:{}", path, bufferSize, ex);
return null;