-
Notifications
You must be signed in to change notification settings - Fork 356
Clarify that "errors" are not fatal #649
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but could be a little more refined (see suggestions)
| } | ||
|
|
||
| Console.WriteLine("Encountered error downloading depot manifest {0} {1}: {2}", depot.DepotId, depot.ManifestId, e.StatusCode); | ||
| Console.WriteLine("Encountered {2} for depot manifest {0} {1}. Retrying.", depot.DepotId, depot.ManifestId, e.StatusCode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Console.WriteLine("Encountered {2} for depot manifest {0} {1}. Retrying.", depot.DepotId, depot.ManifestId, e.StatusCode); | |
| Console.WriteLine("Encountered HTTP {2:D} for depot manifest {0} {1}. Retrying.", depot.DepotId, depot.ManifestId, e.StatusCode); |
| { | ||
| cdnPool.ReturnBrokenConnection(connection); | ||
| Console.WriteLine("Encountered error downloading manifest for depot {0} {1}: {2}", depot.DepotId, depot.ManifestId, e.Message); | ||
| Console.WriteLine("Error downloading manifest for depot {0} {1}: {2} Retrying.", depot.DepotId, depot.ManifestId, e.Message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Console.WriteLine("Error downloading manifest for depot {0} {1}: {2} Retrying.", depot.DepotId, depot.ManifestId, e.Message); | |
| Console.WriteLine("Error downloading manifest for depot {0} {1}: {2} Retrying...", depot.DepotId, depot.ManifestId, e.Message); |
| } | ||
|
|
||
| Console.WriteLine("Encountered error downloading chunk {0}: {1}", chunkID, e.StatusCode); | ||
| Console.WriteLine("Encountered {1} for chunk {0}. Retrying.", chunkID, e.StatusCode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Console.WriteLine("Encountered {1} for chunk {0}. Retrying.", chunkID, e.StatusCode); | |
| Console.WriteLine("Encountered HTTP {1:D} for chunk {0}. Retrying...", chunkID, e.StatusCode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is definitely not gonna be work out, because StatusCode is a value like ServiceUnavailable or NotFound from what I've observed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want the integer value (:D e.g. 503), or the enum name (:G eg ServiceUnavailable)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think Encountered ServiceUnavailable makes more sense and keeps it roughly identical to what it was. Encountered HTTP 503 doesn't mean a whole lot to anyone who hasn't studied the HTTP RFCs.
| { | ||
| cdnPool.ReturnBrokenConnection(connection); | ||
| Console.WriteLine("Encountered unexpected error downloading chunk {0}: {1}", chunkID, e.Message); | ||
| Console.WriteLine("Error downloading chunk {0}: {1} Retrying.", chunkID, e.Message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Console.WriteLine("Error downloading chunk {0}: {1} Retrying.", chunkID, e.Message); | |
| Console.WriteLine("Error downloading chunk {0}: {1} Retrying...", chunkID, e.Message); |
Co-authored-by: Yaakov <[email protected]>
Possibly the number one 'issue' I hear from users who are following our guides is that "DepotDownloader just throws a bunch of errors."
I've went ahead and refined the messages here based on the values I've observed (status codes always being an enumeration string, and exception messages always ending in a period).