mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
9e29462562
commit
dab957d05e
|
@ -14,23 +14,6 @@ HH:MM:SS Debug: POST /telemetry-ext
|
|||
< "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 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
|
||||
pid=PID
|
||||
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 Warn: Attempt 2 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 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
|
||||
|
|
|
@ -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 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
|
||||
|
|
|
@ -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 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
|
||||
|
|
|
@ -92,7 +92,7 @@ func Upload(ctx context.Context) (*ResponseBody, error) {
|
|||
|
||||
// Partial success. Retry.
|
||||
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)
|
||||
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
|
||||
var apiErr *apierr.APIError
|
||||
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)
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue