Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-20446

Fix problem in housekeeping auditlog

XMLWordPrintable

    • Team C
    • Sprint 84 (Jan 2022)
    • 1

      Steps to reproduce:

      1. 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.

        1. fix-housekeeping-auditlog.patch
          2 kB
          Yuuki Enomoto
        2. ZBX-20446.patch
          5 kB
          Yuuki Enomoto

            arimdjonoks Artjoms Rimdjonoks
            uki Yuuki Enomoto
            Team C
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: