Skip to content

Added SendPartialBatch Setting #1339

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

d1ngd0
Copy link

@d1ngd0 d1ngd0 commented Oct 17, 2024

Send Partial Batch will force partial batches to send right away when calling Writer.WriteMessages instead of blocking until a full batch is made or the timeout is seen.

I have run into the same issue seen in #852 this issue and took a whack at implementing a new setting to output batches right away. My implementation is nearly identical to #1167. Unfortunately I didn't do my homework ahead of time and just re-invented the same solution.

This does add a test to ensure the solution works, and implements the deprecated pattern as well, since it is required in the testing. Further more I removed the unnecessary goroutine which fires the batch after the timeout, since the batch will always flush.

@seg-atlantis-prod
Copy link

Atlantis commands can't be run on fork pull requests. To enable, set --allow-fork-prs or, to disable this message, set --silence-fork-pr-errors

@seg-atlantis-prod
Copy link

Error parsing command: EOF found when expecting closing quote

Send Partial Batch will force partial batches to send right away when
calling Writer.WriteMessages instead of blocking until a full batch is
made or the timeout is seen.
@d1ngd0 d1ngd0 force-pushed the ftr/nonblocking-send branch from 722b4a2 to 8d701a8 Compare October 17, 2024 12:03
@seg-atlantis-prod
Copy link

Atlantis commands can't be run on fork pull requests. To enable, set --allow-fork-prs or, to disable this message, set --silence-fork-pr-errors

@seg-atlantis-prod
Copy link

Error parsing command: EOF found when expecting closing quote

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant