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

Duplicate entry for trigger_depends prevents discovered triggers to be updated

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.4.6
    • Fix Version/s: None
    • Component/s: Server (S)

      Description

      Regularly we see failed queries in the Zabbix server log:

      [Z3005] query failed: [1062] Duplicate entry '200200001061961-200200001061964' for key 'trigger_depends_1' [insert into trigger_depends (triggerdepid,triggerid_down,triggerid_up) values (200200003738233,200200001061961,200200001061964);
      

      This prevents the affected discovered triggers to be updated.

      It appears that the server tries to insert the same depedency multiple times:

      mysql> select * from trigger_depends where triggerid_down='200200001061961' and triggerid_up='200200001061964';
      +-----------------+-----------------+-----------------+
      | triggerdepid    | triggerid_down  | triggerid_up    |
      +-----------------+-----------------+-----------------+
      | 200200001170768 | 200200001061961 | 200200001061964 |
      +-----------------+-----------------+-----------------+
      

      This issue was already happening since version 3.4.

        Attachments

          Activity

            People

            Assignee:
            aigars.kadikis Aigars Kadikis
            Reporter:
            kdaudt Kevin Daudt
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: