-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Batch backports to main-7.0.x #12007
Conversation
Current GetBlock degrees the sbb search from rb tree to line, which costs much cpu time, and could be replaced by SBB_RB_FIND_INCLUSIVE. It reduces time complexity from O(nlogn) to O(logn). Ticket: 7208. (cherry picked from commit 951bcff)
While our documentation indicated what were the possible configuration settings for exception policies, our yaml only explicitly mentioned exception policy for the master switch. Clearly indicate which config settings are about exception policies. Related to Task OISF#5816 (cherry picked from commit 8defee9)
(cherry picked from commit 0f6dbf6)
With the addition of exception policy stats counters, the human readable version of the sats log was mis-aligned, when counters for per-app-proto were enabled. Width change made large enough to accomodate a counter as long as "app_layer.error.bittorrent-dht.exception_policy.pass_packet" which could be valid. Task OISF#5816 (cherry picked from commit 172b55c)
@@ -89,17 +89,16 @@ static int LogStatsLogger(ThreadVars *tv, void *thread_data, const StatsTable *s | |||
int days = in_hours / 24; | |||
|
|||
MemBufferWriteString(aft->buffer, "----------------------------------------------" | |||
"--------------------------------------\n"); | |||
"-----------------------------------------------------\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this changes the format, which may break tools that might parse them. Should we backport this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to move the PR to draft mode as there is consideration for this and other related items.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main-7.0.x #12007 +/- ##
==============================================
+ Coverage 82.93% 83.32% +0.38%
==============================================
Files 922 923 +1
Lines 251298 260942 +9644
==============================================
+ Hits 208418 217434 +9016
- Misses 42880 43508 +628
Flags with carried forward coverage won't be shown. Click here to find out more. |
If I recall correctly, we are still pondering on whether the format that we have in master for the exception policy stats - especially for app-layer error - is what we want -- that's why the backport has been sitting for so long. We should resurface this discussion... |
Information: QA ran without warnings. Pipeline 23160 |
Should this be rebased ? There was the merge of https://redmine.openinfosecfoundation.org/issues/7275 right ? |
Needs to be reconsidered later. |
Continuation of #12006
Backports to main-7.0..x of 6509 and 7275
Link to tickets:
Describe changes:
Updates:
Provide values to any of the below to override the defaults.
link to the pull request in the respective
_BRANCH
variable.SV_REPO=
SV_BRANCH=
SU_REPO=
SU_BRANCH=
LIBHTP_REPO=
LIBHTP_BRANCH=