This is an automated email from the ASF dual-hosted git repository.
ayushsaxena pushed a commit to branch branch-2.10
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-2.10 by this push:
new a5c3620 HDFS-15166. Remove redundant field fStream in ByteStringLog.
Contributed by Xieming Li.
a5c3620 is described below
commit a5c3620bc290ae7ca1292532a42388d23d04566b
Author: Ayush Saxena <[email protected]>
AuthorDate: Mon Feb 24 20:17:01 2020 +0530
HDFS-15166. Remove redundant field fStream in ByteStringLog. Contributed by
Xieming Li.
---
.../org/apache/hadoop/hdfs/server/namenode/EditLogFileInputStream.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EditLogFileInputStream.java
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EditLogFileInputStream.java
index 12f28b7..9f4e207 100644
---
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EditLogFileInputStream.java
+++
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EditLogFileInputStream.java
@@ -68,7 +68,6 @@ public class EditLogFileInputStream extends
EditLogInputStream {
CLOSED
}
private State state = State.UNINIT;
- private InputStream fStream = null;
private int logVersion = 0;
private FSEditLogOp.Reader reader = null;
private FSEditLogLoader.PositionTrackingInputStream tracker = null;
@@ -154,6 +153,7 @@ public class EditLogFileInputStream extends
EditLogInputStream {
throws LogHeaderCorruptException, IOException {
Preconditions.checkState(state == State.UNINIT);
BufferedInputStream bin = null;
+ InputStream fStream = null;
try {
fStream = log.getInputStream();
bin = new BufferedInputStream(fStream);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]