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

fix(grouper): fix parallel events increment #322

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Conversation

neSpecc
Copy link
Member

@neSpecc neSpecc commented Sep 30, 2024

When many similar events processed in parallel, check for isFirstOccurence returns falsy-false value since we have no db lock. So all second events are processed as the first one.

We have a special try-catch statement that handles this case by catching Mongo "duplicate error". This statement re-runs processing for a particular event. But looks like we've lost return there, so on each re-run increment was added anyway

@neSpecc neSpecc merged commit ced34da into master Sep 30, 2024
3 checks passed
@neSpecc neSpecc deleted the fix-parallel-increment branch September 30, 2024 21:16
neSpecc added a commit that referenced this pull request Sep 30, 2024
* Changed the content of the limit events email (#319)

* Update html.twig

Change the description email

* Change email's title

* Update index.ts (#322)

---------

Co-authored-by: Alexander Chernyaev <[email protected]>
Co-authored-by: Peter <[email protected]>
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

Successfully merging this pull request may close these issues.

3 participants