-
Notifications
You must be signed in to change notification settings - Fork 10
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
Bug: Bulk ack truncated by NetworkError / CORS #452
Comments
After some further testing it appears that the error occurs when bulk inserting 5 or more incidents. |
Fixed by #480 |
Bug is still relevant. Error message is same as reported by @hhramberg Bug update:Bulk close and bulk reopen are also affected. For all cases where bug occurs, only 4-6 incidents are updated properly, the rest is failing. |
I have debugged this in our own infrastructure, and this isn't a front-end bug. Currently, the problem stems from how notifications are processed when API calls produce new incident events. Notifications are processed synchronously for every updated incident, and causes a background process to be forked off for each event. This essentially means that when acking 100 incidents, 100 background processes are rapidly spawned to handle the dispatch of notifications for the 100 events this generates. Specifically, in our production infrastructure, this takes about 33 seconds, but our deployment runs on This does not affect bulk ticket operations, as these do not currently generate any events, so no notifications are processed. The workaround in our production environment is to increase the For the Argus back-end, there is a slight mitigation in progress in Uninett/Argus#616, but the real fix is that we are currently reworking the notification system to process events asynchronously using messaging queues. See Uninett/Argus#121 for the overarching status of the notification system rewrites that are taking place. |
Describe the bug
Bulk acknowledgement of multiple Argus incidents is causes CORS and/or NetworkError.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
All selected Argus incidents to be successfully acknowledged without any network errors.
Screenshots
Desktop (please complete the following information):
Additional context
Argus version: Backend v.1.8.0, API v1(stable), frontend v.1.6.1
The text was updated successfully, but these errors were encountered: