Skip to content

Conversation

@igorpeshansky
Copy link
Contributor

Description

Some outgoing requests end up being over the API limit. This PR reduces the chance of that happening by lowering the maximum size of the accumulated buffer.

Related issue

http://b/244498953

How has this been tested?

Only automatic unit tests.

Checklist:

  • Unit tests
    • Unit tests do not apply.
    • Unit tests have been added/modified and passed for this PR.
  • Integration tests
    • Integration tests do not apply.
    • Integration tests have been added/modified and passed for this PR.
  • Documentation
    • This PR introduces no user visible changes.
    • This PR introduces user visible changes and the corresponding documentation change has been made.
  • Minor version bump
    • This PR introduces no new features.
    • This PR introduces new features, and there is a separate PR to bump the minor version since the last release already.
    • This PR bumps the version.

@igorpeshansky igorpeshansky requested review from a team and hsmatulis and removed request for a team September 21, 2022 20:37
Copy link
Contributor

@qingling128 qingling128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@igorpeshansky
Copy link
Contributor Author

Thanks. The Windows integration test failure was a flake. Merging.

@igorpeshansky igorpeshansky merged commit f30948b into master Sep 28, 2022
@igorpeshansky igorpeshansky deleted the igorpeshansky-decrease-buffer-max-size branch September 28, 2022 19:47
@sophieyfang
Copy link
Contributor

sophieyfang commented Oct 3, 2022

Shall we also add a test case with a log entry really big and see it didn't get the API denied response? 🤔

@jefferbrecht jefferbrecht mentioned this pull request Oct 3, 2022
9 tasks
jefferbrecht added a commit that referenced this pull request Oct 3, 2022
jefferbrecht added a commit that referenced this pull request Oct 3, 2022
jefferbrecht added a commit that referenced this pull request Oct 3, 2022
* Revert "Decrease fluent-bit buffer_max_size to 2M for smaller outgoing requests. (#867)"

This reverts commit f30948b.

* Update newer goldens after reverting #867
@igorpeshansky
Copy link
Contributor Author

@sophieyfang:

Shall we also add a test case with a log entry really big and see it didn't get the API denied response? 🤔

I think the issue here is that the accumulated size of the log entries exceeds the API request limit. A single entry will still be rejected, as it'd be over the entry size limit (256k). While we can try to simulate the "multiple entries add up to a request that's too large" scenario, it seems very fragile and hard to reproduce, so the test will likely be flaky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants