Skip to content

MySQL can cause cacti to become stalled due to locking issues #4880

@TheWitness

Description

@TheWitness

Describe the bug

In the last two days, I have found issues with boost that will have a ripple effect. The problem is that the set_lock() MySQL function can essentially block graphing and polling if a data source has been locked, and it is unable to be unlocked.

This will not happen on all occasions as this is a timing issue. As such Cacti needs to be a bit more intelligent about it's use of set_lock() in MySQL.

To Reproduce

Steps to reproduce the behavior:

  1. Start boost

  2. Abruptly cancel boost child process through a kill -9 which does not allow the signal handler to clear the lock.

  3. Watch as boost basically gets hung up which can then lead to missed boost processes.

Expected behavior

Less issues that cause Cacti processes to essentially hang.

Metadata

Metadata

Assignees

No one assigned

    Labels

    boostBoost related issuebugUndesired behaviourconfirmedBug is confirm by dev teamdata collectionIssues related to data collectionresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions