Skip to content
Snippets Groups Projects
Commit a35e85e2 authored by Neelesh Thakur's avatar Neelesh Thakur
Browse files

update error code

parent 5d12f28b
No related branches found
No related tags found
2 merge requests!183Locking down maven central,!167add schema parse error in record trace field
Pipeline #51951 failed
......@@ -224,7 +224,7 @@ public class IndexerServiceImpl implements IndexerService {
List<String> errors = new ArrayList<>();
IndexSchema schemaObj = this.schemaService.getIndexerInputSchema(kind, errors);
if (!errors.isEmpty()) {
this.jobStatus.addOrUpdateRecordStatus(entry.getValue().keySet(), IndexingStatus.WARN, RequestStatus.INVALID_RECORD, String.join("|", errors), String.format("error | kind: %s", kind));
this.jobStatus.addOrUpdateRecordStatus(entry.getValue().keySet(), IndexingStatus.WARN, HttpStatus.SC_BAD_REQUEST, String.join("|", errors), String.format("error | kind: %s", kind));
} else if (schemaObj.isDataSchemaMissing()) {
this.jobStatus.addOrUpdateRecordStatus(entry.getValue().keySet(), IndexingStatus.WARN, HttpStatus.SC_NOT_FOUND, "schema not found", String.format("schema not found | kind: %s", kind));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment