Open pxp928 opened 8 months ago
For the cli: Update this msg:
{"level":"info","ts":1712269408.81918,"caller":"cmd/files.go:152","msg":"completed ingesting 1 documents of 1"}
To either be that on success (no errors), or something like:
{"level":"error","ts":1712269408.81918,"caller":"cmd/files.go:152","msg":"2 failures and 8 successful documents ingested of 10"}
For the ingestor service: Also update the ingestor msg to fail as well:
{"level":"info","ts":1712269408.819148,"caller":"ingestor/ingestor.go:68","msg":"[1.277286833s] completed doc {Collector:FileCollector Source:file:///../guac-data/docs/spdx/spdx_vuln.json}"}
Look into enabling prometheus on ingestor and emitting errors.
Describe the bug Currently when using bulk ingestion, when part of the ingestion of a document fails it is not reported. This should error and be ingested again (placed back in the queue).
In the example below both the
occurrences
andhasSBOM
failed, this should be reported as a failure to ingest the document:Expected behavior Ingestor should only succeed if the document is fully parsed and ingested. Otherwise the document in question should error and be placed back on the queue for re-ingestion.
GUAC version main