Fluent-Bit memory consumption infinitely growing (and EBS Burst Balance decreases) if BQ Plugin Service Account is disabled
Bug Report
Describe the bug Fluent-Bit memory consumption infinitely growing (and EBS Burst Balance decreases) if BQ Plugin Service Account is disabled
To Reproduce
- prepare 6 tail inputs and 6 outputs
- disable service account in BQ and then start FluentBit
- memory is growing infinitely
- Fluent Bit performs too much write operations leading to the increase of the Burst Balancer
Expected behavior
- memory consumption remains the same
- Fluentbit does not decrease burst balance
Screenshots

Your Environment
- Version used: Fluentbit 1.7.* Branch bigquery2
- Configuration:
- Environment name and version (e.g. Kubernetes? What version?):
- Server type and version: Amazon Linux
- Operating System and version:
- Filters and plugins: Tail, BigQuery Output
Comments I am not 100% certain but the FluentBit behavior could be related to the BQ plugin behavior. I found out that the next log lines were generated during the first hour of the test when FluentBit memory, EBS burst balance was normal. There were no error logs for an hour just the next warning logs.
[2021/06/14 02:00:48] [ warn] [engine] failed to flush chunk '720-1623661221.277759933.flb', retry in 903 seconds: task_id=1809, input=tail_service.sawmill.skidder > output=bigquery_service.sawmill.skidder (out_id=0)
[2021/06/14 02:00:48] [ warn] [output:bigquery:bigquery_service.sawmill.skidder] repsponse
{
"error": {
"code": 401,
"message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"errors": [
{
"message": "Invalid Credentials",
"domain": "global",
"reason": "authError",
"location": "Authorization",
"locationType": "header"
}
],
"status": "UNAUTHENTICATED"
}
}
[2021/06/14 02:00:48] [ warn] [engine] failed to flush chunk '720-1623661232.766211811.flb', retry in 81 seconds: task_id=1832, input=tail_service.sawmill.skidder > output=bigquery_service.sawmill.skidder (out_id=0)
[2021/06/14 02:00:48] [ warn] [output:bigquery:bigquery_service.sawmill.skidder] repsponse
{
"error": {
"code": 401,
"message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"errors": [
{
"message": "Invalid Credentials",
"domain": "global",
"reason": "authError",
"location": "Authorization",
"locationType": "header"
}
],
"status": "UNAUTHENTICATED"
}
}
The next log line was generated when the memory, EBS Burst Balance was spiking. I had multiple error logs of the next type.
[2021/06/14 02:00:48] [ warn] [engine] failed to flush chunk '720-1623661231.778054795.flb', retry in 29 seconds: task_id=1806, input=tail_service.sawmill.skidder > output=bigquery_service.sawmill.skidder (out_id=0)
[2021/06/14 02:00:49] [ info] [oauth2] HTTP Status=400
[2021/06/14 02:00:49] [ info] [oauth2] payload:
{"error":"invalid_grant","error_description":"Invalid grant: account not found"}
[2021/06/14 02:00:49] [error] [output:bigquery:bigquery_service.sawmill.skidder] error retrieving oauth2 access token
[2021/06/14 02:00:49] [error] [output:bigquery:bigquery_service.sawmill.skidder] cannot retrieve oauth2 token
[2021/06/14 02:00:49] [ info] [oauth2] HTTP Status=400
[2021/06/14 02:00:49] [ info] [oauth2] payload:
{"error":"invalid_grant","error_description":"Invalid grant: account not found"}
[2021/06/14 02:00:49] [error] [output:bigquery:bigquery_service.haproxy] error retrieving oauth2 access token
[2021/06/14 02:00:49] [error] [output:bigquery:bigquery_service.haproxy] cannot retrieve oauth2 token
[2021/06/14 02:00:49] [ info] [oauth2] HTTP Status=400
[2021/06/14 02:00:49] [ info] [oauth2] payload:
{"error":"invalid_grant","error_description":"Invalid grant: account not found"}
[2021/06/14 02:00:49] [error] [output:bigquery:bigquery_service.sawmill.skidder] error retrieving oauth2 access token
[2021/06/14 02:00:49] [error] [output:bigquery:bigquery_service.sawmill.skidder] cannot retrieve oauth2 token
[2021/06/14 02:00:49] [ info] [oauth2] HTTP Status=400
[2021/06/14 02:00:49] [ info] [oauth2] payload:
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.