Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.1.0, 2.1.4
-
None
Description
class "org.apache.hadoop.hbase.backup.impl.BackupManifest" constructe function
public BackupManifest(FileSystem fs, Path backupPath) throws BackupException {...}
FSDataInputStream is not close after use.
//代码占位符 if (subFile.getPath().getName().equals(MANIFEST_FILE_NAME)) { // load and set manifest field from file content FSDataInputStream in = fs.open(subFile.getPath()); long len = subFile.getLen(); byte[] pbBytes = new byte[(int) len]; in.readFully(pbBytes); BackupProtos.BackupImage proto = null; try { proto = BackupProtos.BackupImage.parseFrom(pbBytes); } catch (Exception e) { throw new BackupException(e); } this.backupImage = BackupImage.fromProto(proto); LOG.debug("Loaded manifest instance from manifest file: " + BackupUtils.getPath(subFile.getPath())); return; }
Attachments
Attachments
Issue Links
- links to