close DataByteArrayOutputStream buff of WriteBatch

This commit is contained in:
Hoan Nguyen 2019-02-26 19:07:26 -08:00 committed by GitHub
parent 5bd2abf85d
commit 0262338687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -195,6 +195,9 @@ class CallerBufferingDataFileAppender extends DataFileAppender {
} }
dataFile.closeRandomAccessFile(file); dataFile.closeRandomAccessFile(file);
} }
if (wb != null && wb.buff != null) {
wb.buff.close();
}
} catch (Throwable ignore) { } catch (Throwable ignore) {
} }
shutdownDone.countDown(); shutdownDone.countDown();