Merge pull request #348 from nguyenhoan/patch-1

close DataByteArrayOutputStream buff of WriteBatch
This commit is contained in:
Jean-Baptiste Onofré 2019-11-17 06:46:01 +01:00 committed by GitHub
commit a0531943a4
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();