Bug #57845 MySQL Enterpise Agent deinstallation: log and pid file not removed
Submitted: 29 Oct 2010 13:10 Modified: 11 Jan 2011 17:37
Reporter: Ulf Wendel Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Installing Severity:S3 (Non-critical)
Version:2.3.0.2036 OS:Any
Assigned to: BitRock Merlin CPU Architecture:Any

[29 Oct 2010 13:10] Ulf Wendel
Description:
Hi,

I've downloaded and installed mysqlmonitoragent-2.3.0.2036-windows-installer.exe . Because I did not read the documentation, I repeated the installation a couple of times. I installed it, did something with the agent, uninstalled it and installed it again.

At some point I was wondering why the agent debug log is so big and what its contains old information that I may not want to be visible on my PC any more. That's because its not removed during the agent deinstallation. 

Not sure if the installer software can handle this and its certainly lowest priority, but could the log be removed during uninstallation? 

Same with the pid file.

How to repeat:
Install agent, run some commands to fill agent debug log, uninstall agent: the log and the pid file are still there.
[18 Nov 2010 21:41] Enterprise Tools JIRA Robot
Andy Bang writes: 
In build 2.3.1.2039.
[30 Nov 2010 13:43] Enterprise Tools JIRA Robot
Carsten Segieth writes: 
- tested OK with 2.3.1.2044, also if uninstalling an updated version both .log and .pid files are removed.

- this should be mentioned in the docs as now a file created after installation (the .log file) is removed. this might be unexpected, although it's a log file "only". The fact that on Windows the .pid is not removed automatically when the process stops is a different issue.
[4 Jan 2011 22:35] John Russell
Added to 2.3.1 change log:

The .log and .pid files for the &merlin_agent;
would be left behind after deinstalling the Agent. Now these files are removed.

I will leave this bug open until this fact is mentioned in the doc installation section.
[11 Jan 2011 17:37] John Russell
Have also added this behavior to the install section of the manual.