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

Adding info log for operation retry #1854

Merged
merged 3 commits into from
Apr 19, 2024
Merged

Adding info log for operation retry #1854

merged 3 commits into from
Apr 19, 2024

Conversation

raj-prince
Copy link
Collaborator

@raj-prince raj-prince commented Apr 19, 2024

Description

Adding info log, in case operation is retried because of some retriable error.

Sample log:

time="19/04/2024 01:26:00.013023" severity=INFO message="Retrying for the error: Get \"https://storage.googleapis.com/storage/v1/b/princer-working-dirs/o?alt=json&delimiter=&endOffset=&includeFoldersAsPrefixes=false&includeTrailingDelimiter=false&matchGlob=&maxResults=1&pageToken=&prefix=&prettyPrint=false&projection=full&startOffset=&versions=false\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"
time="19/04/2024 01:26:00.632900" severity=INFO message="Retrying for the error: Get \"https://storage.googleapis.com/storage/v1/b/princer-working-dirs/o?alt=json&delimiter=&endOffset=&includeFoldersAsPrefixes=false&includeTrailingDelimiter=false&matchGlob=&maxResults=1&pageToken=&prefix=&prettyPrint=false&projection=full&startOffset=&versions=false\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)"
time="19/04/2024 01:26:01.640069" severity=INFO message="Retrying for the error: Get \"https://storage.googleapis.com/storage/v1/b/princer-working-dirs/o?alt=json&delimiter=&endOffset=&includeFoldersAsPrefixes=false&includeTrailingDelimiter=false&matchGlob=&maxResults=1&pageToken=&prefix=&prettyPrint=false&projection=full&startOffset=&versions=false\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)"
time="19/04/2024 01:26:02.713124" severity=INFO message="Retrying for the error: Get \"https://storage.googleapis.com/storage/v1/b/princer-working-dirs/o?alt=json&delimiter=&endOffset=&includeFoldersAsPrefixes=false&includeTrailingDelimiter=false&matchGlob=&maxResults=1&pageToken=&prefix=&prettyPrint=false&projection=full&startOffset=&versions=false\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)"

Link to the issue in case of a bug fix.

NA

Testing details

  1. Manual - check the behavior manually.
  2. Unit tests - NA
  3. Integration tests - NA

@raj-prince raj-prince marked this pull request as ready for review April 19, 2024 13:30
@raj-prince raj-prince requested a review from a team as a code owner April 19, 2024 13:30
@raj-prince raj-prince requested a review from sethiay April 19, 2024 13:30
@raj-prince raj-prince requested a review from sethiay April 19, 2024 14:32
@raj-prince raj-prince merged commit 21b2eb1 into master Apr 19, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants