You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Random and sporadic instances of errors in the log files:
SPINE: Poller[Main Poller] PID[5621] ERROR: SQL Failed! Error:'1582',
Message:'Incorrect parameter count in the call to native function 'FROM_UNIXTIME'',
SQL Fragment:
INSERT INTO poller_output (local_data_id, rrd_name, time, output)
VALUES
(13717,'apc_total_load',FROM_UNIXTIME(),'130'),
(13718,'apc_bankb1_load',FROM_UNIXTIME(),'69'),
(13719,'apc_bankb2_load',FROM_UNIXTIME(),'63')
ON DUPLICATE KEY UPDATE output=VALUES(output)
My own investigations lead me through the get_host_poll_time() function, which seems to be correct. It is possible this is only affecting devices using multiple threads and doing so too quickly. As such, it can end up freeing the "host_time" field when moving onto the next device.
That's going to have to be it. It'll leak a little memory, but not enough to cause problems even with 30k hosts. Memory get's freed in the end enayway.
Describe the bug
Random and sporadic instances of errors in the log files:
My own investigations lead me through the
get_host_poll_time()
function, which seems to be correct. It is possible this is only affecting devices using multiple threads and doing so too quickly. As such, it can end up freeing the "host_time" field when moving onto the next device.Additional context
A partial fix is potentially:
However, this has the potential to leave host_time "un" free'd.
The text was updated successfully, but these errors were encountered: