mirror of https://github.com/apache/kafka.git
KAFKA-19314 Remove unnecessary code of closing snapshotWriter (#19763)
- Remove redundant close of `snapshotWriter`. - `snapshotWriter` is already closed by `RaftSnapshotWriter#writer`. Reviewers: Jhen-Yung Hsu <jhenyunghsu@gmail.com>, Ken Huang <s7133700@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
21afc83f8e
commit
bc797b077f
|
@ -158,7 +158,6 @@ public class SnapshotEmitter implements SnapshotGenerator.Emitter {
|
|||
throw e;
|
||||
} finally {
|
||||
Utils.closeQuietly(writer, "RaftSnapshotWriter");
|
||||
Utils.closeQuietly(snapshotWriter.get(), "SnapshotWriter");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue