Skip to content

Conversation

@rickle-msft
Copy link
Contributor

Adds an example on how to mimic StorageEvent behavior from track 1

Resolves #5828

@ghost ghost added the Storage Storage Service (Queues, Blobs, Files) label Jul 13, 2021
Update the RETRY_COUNT_CONTEXT to log retries.
*/
context.setData(HttpLoggingPolicy.RETRY_COUNT_CONTEXT, attempt + 1);
context.setData(HttpLoggingPolicy.RETRY_COUNT_CONTEXT, attempt);
Copy link
Member

Choose a reason for hiding this comment

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

Was there a bug that was found having an off-by-one retry count? For example, the first retry used attempt = 2?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's correct. The first attempt was coming in as attempt = 2. Since this only affected some log statements and doesn't affect any sdk logic as far as I know, I didn't think it really needed to go in the changelog or anything. But I can add it if we decide that's preferable.

rickle-msft and others added 2 commits July 13, 2021 13:24
@rickle-msft rickle-msft merged commit aa31fa0 into Azure:main Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing StorageEvent equivalent functionality in v12

3 participants