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

housekeeper table is filled when deleting items while internal houskeeper is disabled

XMLWordPrintable

    • Team A
    • Sprint 89 (Jun 2022), Sprint 90 (Jul 2022), Sprint 91 (Aug 2022)
    • 1

      Steps to reproduce:

      1. Administration -> General -> Housekeeping -> uncheck "Enable internal housekeeping" under "History" and "Trends"
      2. Create a host with some item, delete an item
      3. Connect to the database, execute query - select * from housekeeper

      Result:

       MariaDB [zabbix60_server]> select * from housekeeper;
      +---------------+--------------+--------+-------+
      | housekeeperid | tablename    | field  | value |
      +---------------+--------------+--------+-------+
      |             1 | trends       | itemid | 43171 |
      |             2 | trends_uint  | itemid | 43171 |
      |             3 | history_text | itemid | 43171 |
      |             4 | history_log  | itemid | 43171 |
      |             5 | history_uint | itemid | 43171 |
      |             6 | history_str  | itemid | 43171 |
      |             7 | history      | itemid | 43171 |
      |             8 | events       | itemid | 43171 |
      +---------------+--------------+--------+-------+
      8 rows in set (0.000 sec)
      

      Expected:

      MariaDB [zabbix60_server]> select * from housekeeper;
      +---------------+--------------+--------+-------+
      | housekeeperid | tablename    | field  | value |
      +---------------+--------------+--------+-------+
      |             1 | events       | itemid | 43171 |
      +---------------+--------------+--------+-------+
      1 row in set (0.000 sec)
      

       

      Larger installations can use partitioning to clean up the history* and trends* tables. In this case, internal housekeeper is disabled and will never delete those rows. Over time, this table can get so huge that even

      select * from housekeeper where tablename=events
      

      can take over 60 seconds.

      Reproduced on 5.0.19 and 6.0.5, was not able to reproduce in master branch.

            rdetlavs Reinis Detlavs (Inactive)
            asitals Andrejs Sitals (Inactive)
            Team A
            Votes:
            2 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: