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

detect/engine: init alert queue counters on reload - v1 #7641

Merged
merged 1 commit into from
Jul 28, 2022

Conversation

jufajardini
Copy link
Contributor

alert_queue_overflow and alerts_suppressed were not being
reinitialized when there was a reload of Suricata rules, leading to
non-valid stats counters if that happened.

Bug #5457

Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/5457

Describe changes:

  • Called the counter registers for those two from ThreadCtxInitForReload

alert_queue_overflow and alerts_suppressed were not being
reinitialized when there was a reload of Suricata rules, leading to
non-valid stats counters if that happened.

Bug OISF#5457
@codecov
Copy link

codecov bot commented Jul 26, 2022

Codecov Report

Merging #7641 (93c2c97) into master (f8bf581) will increase coverage by 0.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #7641      +/-   ##
==========================================
+ Coverage   75.75%   75.82%   +0.06%     
==========================================
  Files         659      659              
  Lines      185743   185746       +3     
==========================================
+ Hits       140713   140840     +127     
+ Misses      45030    44906     -124     
Flag Coverage Δ
fuzzcorpus 60.25% <100.00%> (+0.10%) ⬆️
suricata-verify 52.53% <0.00%> (+0.10%) ⬆️
unittests 60.70% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 8313

This was referenced Jul 27, 2022
@victorjulien victorjulien merged commit 93c2c97 into OISF:master Jul 28, 2022
@jufajardini jufajardini deleted the bug-5457/v1 branch July 28, 2022 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants