Skip to content

Newer MySQL versions may error if committing a transaction when not in one #4381

@TheWitness

Description

@TheWitness

Describe the bug

Inside of a plugin, if you attempt to commit a transation between a database start when you have lost the beginning of the transaction, you will receive a FATAL PDOException which results in the disabling of the plugin. Cacti should not allow this to happen.

To Reproduce

Steps to reproduce the behavior:

  1. In a plugin, start a transaction

  2. Sleep inside of that transaction

  3. Quickly restart the database server

  4. Commit the transaction after the restart

  5. Note the error in the Cacti log and that the plugin has been disabled.

Expected behavior

Cacti should not fail under this circumstance.

Metadata

Metadata

Assignees

Labels

apiAPI related issuesbugUndesired behaviourdatabaseDatabase and database support issuesresolvedA fixed issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions