-
Patch request
-
Resolution: Fixed
-
Major
-
6.0.0beta2
-
Sprint 84 (Jan 2022)
-
1
Steps to reproduce:
- Do auditlog housekeeping
Result:
Zabbix server seems to be hung.
Expected:
Finish housekeeping
Patch description
In Zabbix 6.0.0, auditid in auditlog table use cuid (char) instead of numeric.
But housekeeping_process_rule() function still call ZBX_STR2UINT64 macro to convert string (which fetched from database) to integer. It causes generate invalid DBexecute() query. This is why unable to break housekeeping_process_rule()'s while loop. So, It looks like it's hung from the user's view.
I attached patch to fix the problem. It remove ZBX_STR2UINT64 calling, then replace type and calling functions.