This commit is contained in:
Shreyas Goenka 2025-03-05 13:58:14 +01:00
parent 9e29462562
commit dab957d05e
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
4 changed files with 23 additions and 23 deletions

View File

@ -14,23 +14,6 @@ HH:MM:SS Debug: POST /telemetry-ext
< "message": "Endpoint not implemented." < "message": "Endpoint not implemented."
< } pid=PID sdk=true < } pid=PID sdk=true
HH:MM:SS Debug: non-retriable error: Endpoint not implemented. pid=PID sdk=true HH:MM:SS Debug: non-retriable error: Endpoint not implemented. pid=PID sdk=true
HH:MM:SS Warn: Attempt 0 failed due to a server side error. Retrying status code: 501
pid=PID
HH:MM:SS Debug: POST /telemetry-ext
> {
> "items": null,
> "protoLogs": [
> "{\"frontend_log_event_id\":\"[UUID]\",\"entry\":{\"databricks_cli_log\":{\"... (246 more bytes)",
> "{\"frontend_log_event_id\":\"[UUID]\",\"entry\":{\"databricks_cli_log\":{\"... (246 more bytes)"
> ],
> "uploadTime": "UNIX_TIME_MILLIS"
> }
< HTTP/1.1 501 Not Implemented
< {
< "error_code": "ERROR_CODE",
< "message": "Endpoint not implemented."
< } pid=PID sdk=true
HH:MM:SS Debug: non-retriable error: Endpoint not implemented. pid=PID sdk=true
HH:MM:SS Warn: Attempt 1 failed due to a server side error. Retrying status code: 501 HH:MM:SS Warn: Attempt 1 failed due to a server side error. Retrying status code: 501
pid=PID pid=PID
HH:MM:SS Debug: POST /telemetry-ext HH:MM:SS Debug: POST /telemetry-ext
@ -50,4 +33,21 @@ HH:MM:SS Debug: POST /telemetry-ext
HH:MM:SS Debug: non-retriable error: Endpoint not implemented. pid=PID sdk=true HH:MM:SS Debug: non-retriable error: Endpoint not implemented. pid=PID sdk=true
HH:MM:SS Warn: Attempt 2 failed due to a server side error. Retrying status code: 501 HH:MM:SS Warn: Attempt 2 failed due to a server side error. Retrying status code: 501
pid=PID pid=PID
HH:MM:SS Debug: POST /telemetry-ext
> {
> "items": null,
> "protoLogs": [
> "{\"frontend_log_event_id\":\"[UUID]\",\"entry\":{\"databricks_cli_log\":{\"... (246 more bytes)",
> "{\"frontend_log_event_id\":\"[UUID]\",\"entry\":{\"databricks_cli_log\":{\"... (246 more bytes)"
> ],
> "uploadTime": "UNIX_TIME_MILLIS"
> }
< HTTP/1.1 501 Not Implemented
< {
< "error_code": "ERROR_CODE",
< "message": "Endpoint not implemented."
< } pid=PID sdk=true
HH:MM:SS Debug: non-retriable error: Endpoint not implemented. pid=PID sdk=true
HH:MM:SS Warn: Attempt 3 failed due to a server side error. Retrying status code: 501
pid=PID
HH:MM:SS Error: upload did not succeed after three attempts pid=PID HH:MM:SS Error: upload did not succeed after three attempts pid=PID

View File

@ -1,7 +1,7 @@
Warn: Attempt 0 failed due to a server side error. Retrying status code: 501
Warn: Attempt 1 failed due to a server side error. Retrying status code: 501 Warn: Attempt 1 failed due to a server side error. Retrying status code: 501
Warn: Attempt 2 failed due to a server side error. Retrying status code: 501 Warn: Attempt 2 failed due to a server side error. Retrying status code: 501
Warn: Attempt 3 failed due to a server side error. Retrying status code: 501
Error: upload did not succeed after three attempts Error: upload did not succeed after three attempts

View File

@ -1,7 +1,7 @@
Warn: Attempt 0 was a partial success. Number of logs uploaded: 1 out of 2
Warn: Attempt 1 was a partial success. Number of logs uploaded: 1 out of 2 Warn: Attempt 1 was a partial success. Number of logs uploaded: 1 out of 2
Warn: Attempt 2 was a partial success. Number of logs uploaded: 1 out of 2 Warn: Attempt 2 was a partial success. Number of logs uploaded: 1 out of 2
Warn: Attempt 3 was a partial success. Number of logs uploaded: 1 out of 2
Error: upload did not succeed after three attempts Error: upload did not succeed after three attempts

View File

@ -92,7 +92,7 @@ func Upload(ctx context.Context) (*ResponseBody, error) {
// Partial success. Retry. // Partial success. Retry.
if err == nil && resp.NumProtoSuccess < int64(len(logs)) { if err == nil && resp.NumProtoSuccess < int64(len(logs)) {
log.Warnf(ctx, "Attempt %d was a partial success. Number of logs uploaded: %d out of %d\n", i, resp.NumProtoSuccess, len(logs)) log.Warnf(ctx, "Attempt %d was a partial success. Number of logs uploaded: %d out of %d\n", i+1, resp.NumProtoSuccess, len(logs))
time.Sleep(2 * time.Second) time.Sleep(2 * time.Second)
continue continue
} }
@ -102,7 +102,7 @@ func Upload(ctx context.Context) (*ResponseBody, error) {
// ref: https://github.com/databricks/databricks-sdk-go/blob/cdb28002afacb8b762348534a4c4040a9f19c24b/apierr/errors.go#L91 // ref: https://github.com/databricks/databricks-sdk-go/blob/cdb28002afacb8b762348534a4c4040a9f19c24b/apierr/errors.go#L91
var apiErr *apierr.APIError var apiErr *apierr.APIError
if errors.As(err, &apiErr) && apiErr.StatusCode >= 500 && apiErr.StatusCode != 503 { if errors.As(err, &apiErr) && apiErr.StatusCode >= 500 && apiErr.StatusCode != 503 {
log.Warnf(ctx, "Attempt %d failed due to a server side error. Retrying status code: %d\n", i, apiErr.StatusCode) log.Warnf(ctx, "Attempt %d failed due to a server side error. Retrying status code: %d\n", i+1, apiErr.StatusCode)
time.Sleep(2 * time.Second) time.Sleep(2 * time.Second)
continue continue
} }