fix: empty the write buffer before exit#465
Merged
vigneshshanmugam merged 2 commits intoelastic:mainfrom Mar 8, 2022
Merged
Conversation
vigneshshanmugam
commented
Mar 8, 2022
| * FLAKY skipped | ||
| */ | ||
| it.skip('run - ensure journey/end is written for real world pages', async () => { | ||
| it('run - ensure journey/end is written for real world pages', async () => { |
Member
Author
There was a problem hiding this comment.
We cant get a better indicator than this test, I am keeping this as it is.
I did not want to test the sonic-boom package functionality in our agent.
dominiqueclarke
approved these changes
Mar 8, 2022
Merged
9 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix reporter stream buffer is not emptied in all cases #446
The max buffer capacity for SonicBoom is
64 * 1024bytes and the APIflushandflushSyncbehaves differently when it comes to writing the last data from the streams buffer.flushAPI only writes the current element in the buffer which is always the first item and drops other data and closes the FD.However
flushSyncensures all the data from the buffer is completely written.Example