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

Revert to working version of Azure client #5413

Merged
merged 3 commits into from Feb 16, 2022

Conversation

MasslessParticle
Copy link
Contributor

Due to context canceled errors originating in the new Azure SDK, we've decided to stabilize things by forking/patching the deprecated sdk client so we can have time to investigate the new client.

This PR does two things:

SDK fork exists here: https://github.com/MasslessParticle/azure-storage-blob-go

- Revert SDK to working version
- Introduce patches to prevent deadlocks
type RoundTripperFunc func(*http.Request) (*http.Response, error)

func (fn RoundTripperFunc) RoundTrip(req *http.Request) (*http.Response, error) {
return fn(req)
}

func Test_Hedging(t *testing.T) {
metrics := NewBlobStorageMetrics()
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you keep this global ? it will make count=10 test fails which helps figuring flaky tests.

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

@owen-d owen-d merged commit d8780da into grafana:main Feb 16, 2022
@@ -288,7 +281,6 @@ require (
github.com/cloudflare/cloudflare-go v0.27.0
github.com/gofrs/flock v0.7.1 // indirect
github.com/gogo/status v1.1.0
github.com/grafana/regexp v0.0.0-20220202152701-6a046c4caf32
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this an intentional change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was not

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

4 participants