Skip to content
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

querier: fix panic in tailer when max tail duration exceeds #1511

Merged
merged 1 commit into from
Jan 13, 2020

Conversation

sandeepsukhani
Copy link
Contributor

What this PR does / why we need it:
When max tail duration reaches, server closes the connection. A goroutine which keeps checking for connection close message from client does not check for already closed connection. This PR takes care of it.

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

@cyriltovena cyriltovena merged commit fbcfad1 into grafana:master Jan 13, 2020
cyriltovena pushed a commit to cyriltovena/loki that referenced this pull request Jun 11, 2021
To use GCP service accounts, the scope needs to be provided in the transport options.

Currently when trying to use this GCS client via Loki, by mounting the service account `credentials.json` file from a secret and using the `GOOGLE_APPLICATION_CREDENTIALS` environment variable, results in the following error response:

```
err="Post https://www.googleapis.com/upload/storage/v1/b/my-loki-bucket/o?alt=json&prettyPrint=false&projection=full&uploadType=multipart: oauth2: cannot fetch token: 400 Bad Request\nResponse: {\n  \"error\": \"invalid_scope\",\n  \"error_description\": \"Empty or missing scope not allowed.\"\n}"
```

Signed-off-by: Graham Rhodes <1964861+grahamar@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants