forked from microsoft/FluidFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add extra op when chunking (microsoft#14199)
## Description When chunking a large, compressed payload and: - the chunk size is large (close to the 1MB limit) - the payload is a batch with many small ops - the last chunk is large as well (all chunks have the same size, except for the last one) considering that the empty ops are bundled with the last chunk, there is a risk that the extra overhead from the empty ops will make the last batch sent by the splitter to go over the 1MB limit and fail. A best-effort approach to mitigate this case would be to always add an extra empty chunk which would be sent along with the empty ops. I've also adjusted the end-to-end test to make sure we cover the scenario of having many small ops.
- Loading branch information
Showing
3 changed files
with
59 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters