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

log: Stop if log initialization fails at startup #8538

Closed
wants to merge 2 commits into from

Conversation

jlucovsky
Copy link
Contributor

Based on #8519

Issue: 5836

This commit modifies Suricata to fail if log initialization errors occur during startup.

Link to redmine ticket: 5836

Describe changes:

  • If output initialization fails during startup, stop Suricata with an error message
  • Remove thread slot lacking structure and consolidate tracking info with the hash table entry.

Updates

  • Removed slot tracking structure and consolidated tracking information with each hash table entry.

suricata-verify-pr: 1114
#suricata-verify-repo:
#suricata-verify-branch:
#suricata-update-pr:
#suricata-update-repo:
#suricata-update-branch:
#libhtp-pr:
#libhtp-repo:
#libhtp-branch:

Issue: 5836

This commit modifies Suricata to fail if log initialization errors occur
during startup.
Issue: 5836

This commit removes the duplicate threaded file tracking from the log
file mechanisms.

Tracking is now consolidated with the threaded hash table.
@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 12388

@codecov
Copy link

codecov bot commented Feb 13, 2023

Codecov Report

Merging #8538 (5f4e4ed) into master (4ad5e04) will decrease coverage by 3.48%.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8538      +/-   ##
==========================================
- Coverage   81.95%   78.47%   -3.48%     
==========================================
  Files         967      967              
  Lines      278373   278139     -234     
==========================================
- Hits       228129   218266    -9863     
- Misses      50244    59873    +9629     
Flag Coverage Δ
fuzzcorpus 64.11% <0.00%> (+0.08%) ⬆️
suricata-verify ?
unittests 63.37% <0.00%> (+0.01%) ⬆️

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

@jlucovsky
Copy link
Contributor Author

Closing to handle shutdown case with log rotation and plugin.

@jlucovsky
Copy link
Contributor Author

Continued in #8544

@jlucovsky jlucovsky deleted the 5836/3 branch March 7, 2023 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants