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

Details

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

    Description

      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.

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            asitals Andrejs Sitals
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: