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

Errors occur when the PostgreSQL transaction isolation level is set to a non-default level

XMLWordPrintable

      It appears that currently Zabbix does not check the default transaction isolation level and does not handle serialization failures that occur at isolation levels above read committed. This causes some write transactions to fail. For example, the frontend probably cannot save sessions on dynamically updated pages, resulting in guest login errors and further logout. Errors also occur when updating records from the server and proxy side.

      Steps to reproduce:

      Errors are not reproduced on MySQL, so I believe that they are related to Postgres only.

      1. Set Postgres database transaction isolation level to repeatable read.
      2. Log in to Zabbix and open dashboard and latest data tabs.

      Result:
      Guest login errors appear in the audit log, after a while the user logs out.

      Expected:

      Databases can be deployed with a default isolation level of repeatable read or serializable. This setting must be checked when using Postgres, otherwise it can lead to a lot of implicit errors that are not properly handled on the application side.

      1. There should be warnings on the front about the Postgres database default transaction isolation level higher than read committed.
      2. The requirements for the transaction isolation level should be specified in the documentation.

        1. set-isolation.jpg
          set-isolation.jpg
          110 kB
        2. server-err.log
          1 kB
        3. postgres-err.log
          3 kB
        4. logout.jpg
          logout.jpg
          149 kB
        5. login-err.jpg
          login-err.jpg
          86 kB
        6. front-err.jpg
          front-err.jpg
          321 kB

            zabbix.dev Zabbix Development Team
            kikoz Artem Misnik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: