Skip to content

Conversation

jeffswenson
Copy link
Collaborator

@jeffswenson jeffswenson commented Oct 10, 2025

Previously, the azure client did not use the ResumingReader. This was causing tracing span use after free issues as the client would issue http retries with a span that was already finished. The ResumingReader manages a span for the lifetime of the reader.

There is also some evidence in #154483 that the RetryReader built into the azure client did not properly retry errors that occur while reading the body.

Fixes: #154849
Release note: none

Previously, the azure client did not use the ResumingReader. This was
causing tracing span use after free issues as the client would issue
http retries with a span that was already finished. The ResumingReader
manages a span for the lifetime of the reader.

There is also some evidence in cockroachdb#154483 that the RetryReader built into
the azure client did not properly retry errors that occur while reading
the body.

Fixes: 154849
Release note: none
@jeffswenson jeffswenson requested a review from msbutler October 10, 2025 21:04
@jeffswenson jeffswenson requested a review from a team as a code owner October 10, 2025 21:04
Copy link

blathers-crl bot commented Oct 10, 2025

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@jeffswenson
Copy link
Collaborator Author

I feel so/so about this change. It brings the implementation of the azure client in line with how the gcs/aws clients are implemented. But it feels like we should able to use the retry logic built into the azure client if we tune it correctly. However, having spent more time than I care to reading the retry logic of the various cloud clients, there is some comfort in knowing the retry logic lives in CRDB code and is uniform.

Copy link
Collaborator

@msbutler msbutler left a comment

Choose a reason for hiding this comment

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

Going to merge this now to quiet the test

}
sp.SetTag("path", attribute.StringValue(object))

if !opts.NoFileSize {
Copy link
Collaborator

Choose a reason for hiding this comment

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

i wonder why you removed the NoFileSize logic here.

@msbutler
Copy link
Collaborator

bors r+

@craig
Copy link
Contributor

craig bot commented Oct 14, 2025

@craig craig bot merged commit 4cf9616 into cockroachdb:master Oct 14, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

roachtest: backupFixture/tpcc/warehouses=5000/incrementals=48 failed

3 participants