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
Afsql threaded dest driver #2097
Conversation
fbac557
to
46b6159
Compare
8af60a6
to
4e237e9
Compare
Build FAILURE |
46b6159
to
df239bc
Compare
Build FAILURE |
1 similar comment
Build FAILURE |
df239bc
to
bfcdcd3
Compare
4e237e9
to
cfd79b7
Compare
Build FAILURE |
1 similar comment
Build FAILURE |
67785c6
to
d738cf7
Compare
Build FAILURE |
d738cf7
to
80d3e7b
Compare
Build FAILURE |
80d3e7b
to
511c49d
Compare
Build FAILURE |
511c49d
to
4aa7ae5
Compare
Build FAILURE |
4aa7ae5
to
9418c8b
Compare
Build FAILURE |
9418c8b
to
1ca1267
Compare
Build FAILURE |
1ca1267
to
6a1ecdb
Compare
Build FAILURE |
044c18c
to
53f2424
Compare
Build FAILURE |
53f2424
to
a790427
Compare
Build FAILURE |
Build FAILURE |
Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@oneidentity.com>
Since logthrdestdrv provides generic support for flush-timeout(), it is trivial to enable. Signed-off-by: Balazs Scheidler <balazs.scheidler@oneidentity.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@oneidentity.com>
af8f6d7
to
dfea193
Compare
Build FAILURE |
@kira-syslogng retest this please; |
Build FAILURE |
@kira-syslogng retest this please |
Build SUCCESS |
👍👍👍👍 |
@bazsi I checked with valgrind, and I found an invalid read: Config:
The invalid read happens right after syslog-ng starts, without messages.
|
This error is in dbd_sqlite3 and is caused by the fact that we set sqlite3_dbdir to an empty string, which that code does not handle properly. I am thinking about a possible workaround, however this is clearly not the result of this refactor, but has been in the code for quite some time now. |
Signed-off-by: Balazs Scheidler <balazs.scheidler@oneidentity.com>
I have added a workaround on top of the existing branch. |
Build SUCCESS |
Signed-off-by: Balazs Scheidler <balazs.scheidler@oneidentity.com>
0f26872
to
3a4f608
Compare
Build SUCCESS |
I found another leak, but as the previous one, it is not caused by the refactor. _is_table_present receives a db_res parameter, that is only freed in the true branch. As a result: we leak a leak a dbi_result once, when the table is created. We can handle this independently from this patch. Approve from my side. |
@kira-syslogng retest this please |
Build SUCCESS |
This branch converts our afsql driver to use the LogThreadedDestDriver framework, instead of its home-grewn implementation (that has originally been the basis of LogThreadedDestDriver).
This should go in after #2315 because without that some of our stats counters would be missing.