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):
What happened:
CreateAPIEventAnnotations sometimes fails due to unique constraint violation.
On
event_annotations
, there's a unique keyapi_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!