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

Add commandline option to simulate alert queue expand failure - v2 #7527

Closed

Conversation

jufajardini
Copy link
Contributor

Previous PR: #7403

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

Describe changes:

  • add the command-line argument --simulate-alert-queue-realloc-failure as part of the exception utils options

suricata-verify-pr: 850
OISF/suricata-verify#850

victorjulien
victorjulien previously approved these changes Jun 10, 2022
For testing purposes. Meant to simulate a reallocation failure when
dynamically growing the alert queue in DetectEngineThreadCtx, so we can
check that Suri's behavior doesn't break under such circumstances.

Task OISF#5319
@jufajardini
Copy link
Contributor Author

Force pushed to fix the commit checks, as I had fixed the include typo but in the wrong commit... Sorry about that >__<

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 7791

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 7793

@@ -27,6 +27,7 @@
#include "flow.h"
#include "flow-private.h"

#include "util-exception-policy.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be guarded with ifdef DEBUG?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following Victor's example, this wasn't there, but I think it is a good addition, indeed.

@jufajardini
Copy link
Contributor Author

replaced by: #7622

@jufajardini jufajardini deleted the alert-expand-fail-5319/v2 branch August 2, 2022 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs verify Needs (a) Suricata-verify test(s)
Development

Successfully merging this pull request may close these issues.

4 participants