Closed shibd closed 1 day ago
Attention: Patch coverage is 85.00000%
with 3 lines
in your changes missing coverage. Please review.
Project coverage is 73.43%. Comparing base (
bbc6224
) to head (f5b8da1
). Report is 427 commits behind head on master.
Motivation
Using package API to upload a large package may cause broker OOM.
Because in the current implementation, will copy all data to the heap.
https://github.com/apache/pulsar/blob/2c6fcc7eb8343583ffb48dec937334a5f05afbae/pulsar-package-management/bookkeeper-storage/src/main/java/org/apache/pulsar/packages/management/storage/bookkeeper/DLOutputStream.java#L60-L65
Modifications
Each time, only copy the size of one record and then upload it directly.
There is no need to worry about batching, as the
distributedlog client
will handle the batching.Verifying this change
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: