-
Notifications
You must be signed in to change notification settings - Fork 297
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
Crash loop on event with ASN = 0 #1765
Comments
I agree with the proposed fix - but where does the invalid value come from in the first place? It should not get into the pipeline at all. |
Well I have no idea. This bug only happened in our test environment which was subject to a lot of cruel experiments over time. :-) For reasons beyond me every now and then there is repetitive appearance of events from 2017 (such event caused this). Hopefully I will investigate deeper at some point. |
tests for certtools#1765 / PR certtools#1766 checks if invalid values in the pipeline are correctly handled (dumped, logged)
Every now and then there appears an event with
source.asn = 0
in our pipeline. Whenever a bot receives such message, it throws an exception InvalidValue. The bot then gets stuck in a loop between this exception and PipelineError exception.The
defaults
configuration:Log (from
intelmqctl run
):The bot keeps throwing these two exceptions and never stops. Expected behavior would be to follow
defaults.conf
, try it three times (even better would be to try just once for this kind of exception because the problem is obviously not going to go away) and then just dump the message and continue processing another one. However the message is never dumped (not to dump file nor the log - see the log lineCurrent Message(event): None.
) because it is never even loaded.Currently the InvalidValue exceptions gets caught by a generic Exception handler:
intelmq/intelmq/lib/bot.py
Lines 329 to 353 in b7ba19c
I believe it should be better handled in a similar fashion to DecodingError:
intelmq/intelmq/lib/bot.py
Lines 320 to 327 in b7ba19c
The text was updated successfully, but these errors were encountered: