HomeClusterLabs Projects

Low: mysql: tmpfile is leaking when set the OCF_CHECK_LEVEL to 10

Description

Low: mysql: tmpfile is leaking when set the OCF_CHECK_LEVEL to 10

The function get_slave_info() makes a tmpfile that named /var/run/resource-agents/check_slave.mysql.XXXXXX.
This tmpfile is removed by the function that called a get_slave_info().

However, The function is_slave() calls the get_slave_info() , but does not remove tmpfile.
When OCF_CHECK_LEVEL is set to 10, in the Slave node, the function is_slave() will be called from the mysql_monitor.
So, the number of the tmpfile continues increasing in every 10 seconds in the Slave node.

Details

Provenance
higashik <kazuh@goo.jp>Authored on Dec 16 2015, 12:08 AM
Parents
rRb5662ccb8b6b: Merge pull request #718 from kmcfate/master
Branches
Unknown
Tags
Unknown

Event Timeline