Skip to content

Commit

Permalink
chore: modify error message on stopped error bq sink (raystack#1)
Browse files Browse the repository at this point in the history
* chore: modify error message on stopped error bq sink

* chore: fix typo

---------

Co-authored-by: jesry.pandawa <[email protected]>
  • Loading branch information
jesrypandawa and jesry.pandawa authored Mar 17, 2023
1 parent 328d7ff commit 4c7d2e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static Map<Long, ErrorInfo> getErrorsFromBQResponse(
Record record = records.get(errorEntry.getKey().intValue());
long messageIndex = record.getIndex();
List<ErrorDescriptor> errors = ErrorParser.parseError(errorEntry.getValue());
instrumentation.logError("Error while bigquery insert for message. Record: {}, Error: {}, MetaData: {}",
instrumentation.logError("Error while bigquery insert for message. \nRecord: {}, \nError: {}, \nMetaData: {}",
record.getColumns(), errors, record.getMetadata());

if (errorMatch(errors, UnknownError.class)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ public boolean matches() {

@Override
public String toString() {
return "StoppedError: Failed to insert this row because of some (other)error records in batch";
return "StoppedError: BigQuery encountered an error on individual rows in the request, none of the rows are inserted. This error can be retried";
}
}

0 comments on commit 4c7d2e4

Please sign in to comment.