apiclarity
apiclarity copied to clipboard
event_annotations batch insert fails
What happened:
CreateAPIEventAnnotations sometimes fails due to unique constraint violation.
On event_annotations
, there's a unique key api_event_ann_idx_model
on (module_name
, event_id
, name
). When trying to insert multiple rows this constraint could be violated, and the whole insert operation fails.
What you expected to happen:
Deduplication before trying to batch insert?
How to reproduce it (as minimally and precisely as possible):
Not sure so far. But the problem seems clear.
Are there any error messages in API Clarity logs?
(e.g. kubectl logs -n apiclarity --selector=app=apiclarity
)
Thanks in advance!
@klyr can you take a look?
Hi @xudj14,
Thank you for the report.
We'll be working on it. My first guess is that we may remove the constraint.