You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Eric Yang (JIRA)" <ji...@apache.org> on 2011/06/14 00:25:47 UTC
[jira] [Created] (HADOOP-7387) Change rpm to ignore configuration
files when uninstalling
Change rpm to ignore configuration files when uninstalling
----------------------------------------------------------
Key: HADOOP-7387
URL: https://issues.apache.org/jira/browse/HADOOP-7387
Project: Hadoop Common
Issue Type: Improvement
Environment: Java 6, RHEL 5.5
Reporter: Eric Yang
Assignee: Eric Yang
Priority: Minor
When uninstalling RPM files, the config files are renamed from core-site.xml to core-site.xml.rpmsave. It would be nice if config file does not get renamed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-7387) Change rpm to ignore configuration
files when uninstalling
Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Yang updated HADOOP-7387:
------------------------------
Status: Patch Available (was: In Progress)
> Change rpm to ignore configuration files when uninstalling
> ----------------------------------------------------------
>
> Key: HADOOP-7387
> URL: https://issues.apache.org/jira/browse/HADOOP-7387
> Project: Hadoop Common
> Issue Type: Improvement
> Environment: Java 6, RHEL 5.5
> Reporter: Eric Yang
> Assignee: Eric Yang
> Priority: Minor
>
> When uninstalling RPM files, the config files are renamed from core-site.xml to core-site.xml.rpmsave. It would be nice if config file does not get renamed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Work started] (HADOOP-7387) Change rpm to ignore
configuration files when uninstalling
Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on HADOOP-7387 started by Eric Yang.
> Change rpm to ignore configuration files when uninstalling
> ----------------------------------------------------------
>
> Key: HADOOP-7387
> URL: https://issues.apache.org/jira/browse/HADOOP-7387
> Project: Hadoop Common
> Issue Type: Improvement
> Environment: Java 6, RHEL 5.5
> Reporter: Eric Yang
> Assignee: Eric Yang
> Priority: Minor
>
> When uninstalling RPM files, the config files are renamed from core-site.xml to core-site.xml.rpmsave. It would be nice if config file does not get renamed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-7387) Change rpm to ignore configuration
files when uninstalling
Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Yang updated HADOOP-7387:
------------------------------
Resolution: Won't Fix
Status: Resolved (was: Patch Available)
Brian is right, the rpm behavior is not changeable, see:
[http://www-uxsup.csx.cam.ac.uk/~jw35/docs/rpm_config.html]
And there are good reasons for .rpmsave backup files from package manager prospective. Hence, this is a won't fix.
> Change rpm to ignore configuration files when uninstalling
> ----------------------------------------------------------
>
> Key: HADOOP-7387
> URL: https://issues.apache.org/jira/browse/HADOOP-7387
> Project: Hadoop Common
> Issue Type: Improvement
> Environment: Java 6, RHEL 5.5
> Reporter: Eric Yang
> Assignee: Eric Yang
> Priority: Minor
>
> When uninstalling RPM files, the config files are renamed from core-site.xml to core-site.xml.rpmsave. It would be nice if config file does not get renamed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7387) Change rpm to ignore configuration
files when uninstalling
Posted by "Joep Rottinghuis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049264#comment-13049264 ]
Joep Rottinghuis commented on HADOOP-7387:
------------------------------------------
If I read the rpm_config page you referred to correctly, that specifies the behavior when a package is updated, not what happens if it is uninstalled.
I'd say if a config file has been unchanged from the original installation then uninstall should actually delete the config file (you can always get it back by re-installing the package again).
If a config file has been modified and differs from the version in the pacakge, it could be renamed to .rpmsave.
I think it is important that uninstalling packages leaves the system as close as possible to the state it was in before the package was installed in the first place.
When you want to upgrade from one version to the next you really do not want any artifacts to linger around and mess up things in an unexpected way.
Specifically:
Install version A, uninstall version A, install version B
should be the same as:
Install version B
> Change rpm to ignore configuration files when uninstalling
> ----------------------------------------------------------
>
> Key: HADOOP-7387
> URL: https://issues.apache.org/jira/browse/HADOOP-7387
> Project: Hadoop Common
> Issue Type: Improvement
> Environment: Java 6, RHEL 5.5
> Reporter: Eric Yang
> Assignee: Eric Yang
> Priority: Minor
>
> When uninstalling RPM files, the config files are renamed from core-site.xml to core-site.xml.rpmsave. It would be nice if config file does not get renamed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7387) Change rpm to ignore configuration
files when uninstalling
Posted by "Brian Bockelman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048902#comment-13048902 ]
Brian Bockelman commented on HADOOP-7387:
-----------------------------------------
I'm not sure this is a great idea.
Like it or not (I don't really like the behavior), it's the way RPMs are expected to behave on the platform. To "fix" the behavior will make the RPM stick out.
> Change rpm to ignore configuration files when uninstalling
> ----------------------------------------------------------
>
> Key: HADOOP-7387
> URL: https://issues.apache.org/jira/browse/HADOOP-7387
> Project: Hadoop Common
> Issue Type: Improvement
> Environment: Java 6, RHEL 5.5
> Reporter: Eric Yang
> Assignee: Eric Yang
> Priority: Minor
>
> When uninstalling RPM files, the config files are renamed from core-site.xml to core-site.xml.rpmsave. It would be nice if config file does not get renamed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira