-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
out_es: estimate bulk size to less reallocation(#3775) #3788
Conversation
For example,
|
Signed-off-by: Takahiro Yamashita <[email protected]>
ae23b2c
to
f587cd3
Compare
thanks! |
We updated re-allocation logic(fluent#3788). It tries to devide by converted_size. If converted_size is 0, it causes SIGFPE and exit code 136. Signed-off-by: Takahiro Yamashita <[email protected]>
We updated re-allocation logic(fluent#3788). It tries to divide by converted_size. If converted_size is 0, it causes SIGFPE and exit code 136. Signed-off-by: Takahiro Yamashita <[email protected]>
We updated re-allocation logic(fluent#3788). It tries to divide by converted_size. If converted_size is 0, it causes SIGFPE and exit code 136. Signed-off-by: Takahiro Yamashita <[email protected]>
We updated re-allocation logic(#3788). It tries to divide by converted_size. If converted_size is 0, it causes SIGFPE and exit code 136. Signed-off-by: Takahiro Yamashita <[email protected]>
We updated re-allocation logic(#3788). It tries to divide by converted_size. If converted_size is 0, it causes SIGFPE and exit code 136. Signed-off-by: Takahiro Yamashita <[email protected]>
Hi @nokute78 , On 1.8.10 version, I try by adding a log to check this case GuillaumeSmaha@5b908dd and I got the log few time with a SEGV just after:
I also try to revert the change by using: if (available < required) {
append_size = available + required + ES_BULK_CHUNK;
if (append_size < ES_BULK_CHUNK) {
/* append at least ES_BULK_CHUNK size */
append_size = ES_BULK_CHUNK;
} Until now, it is working for 20 minutes without SEGV. (it was crashing after few minutes) I created #4412 to follow the issue |
@GuillaumeSmaha Thank you for pointing it. |
I will try to do a PR for it. |
Fixes #3775
This patch is to reduce realloc in es_bulk_append.
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
Documentation
Example Configuration
Valgrind output
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.