Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

event_annotations batch insert fails #285

Open
xudj14 opened this issue Nov 3, 2022 · 2 comments
Open

event_annotations batch insert fails #285

xudj14 opened this issue Nov 3, 2022 · 2 comments

Comments

@xudj14
Copy link

xudj14 commented Nov 3, 2022

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)
image

Thanks in advance!

@FrimIdan
Copy link
Member

FrimIdan commented Nov 3, 2022

@klyr can you take a look?

@klyr
Copy link
Contributor

klyr commented Nov 3, 2022

Hi @xudj14,

Thank you for the report.

We'll be working on it. My first guess is that we may remove the constraint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants