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

fix: silent error during batch ingestion #794

Conversation

Pascal-Delange
Copy link
Contributor

No description provided.

Copy link

linear bot commented Jan 6, 2025

@@ -387,7 +387,7 @@ func (usecase *IngestionUseCase) processUploadLog(ctx context.Context, uploadLog
out := usecase.readFileIngestObjects(ctx, file.FileName, file.ReadCloser)
if out.err != nil {
setToFailed(out.numRowsIngested)
return err
return out.err
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The main point of the PR is here. The rest is mainly cleaning up potentially duplicate error handling

@@ -13,14 +12,6 @@ func LogAndReportSentryError(ctx context.Context, err error) {
logger := LoggerFromContext(ctx)
logger.ErrorContext(ctx, fmt.Sprintf("%+v", err))

// Known issue where Cloud Run will sometimes fail to create the unix socket to connect to CloudSQL.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Shouldn't be so much of an issue any more, this was a pain point when we were starting a cloud run job 3 times per minute, and just hitting the CloudSQL availability SLAs.

@Pascal-Delange Pascal-Delange requested a review from a team January 6, 2025 12:52
@Pascal-Delange Pascal-Delange force-pushed the pascal/mar-689-db-connection-errors-do-not-pass-silently-in-batch-ingestion branch from 394eccb to 98dfabd Compare January 9, 2025 13:13
Copy link
Contributor

@ChibiBlasphem ChibiBlasphem left a comment

Choose a reason for hiding this comment

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

LGTM

@Pascal-Delange Pascal-Delange merged commit 160c0cb into main Jan 9, 2025
3 checks passed
@Pascal-Delange Pascal-Delange deleted the pascal/mar-689-db-connection-errors-do-not-pass-silently-in-batch-ingestion branch January 9, 2025 13:16
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