[MB-8460] Uninstall followed by re-install may leave xdcr _replicator database intact causing badness Created: 12/Jun/13  Updated: 11/Sep/13  Resolved: 21/Aug/13

Status: Closed
Project: Couchbase Server
Component/s: installer, ns_server
Affects Version/s: 2.0, 2.0.1, 2.1.0
Fix Version/s: 2.2.0
Security Level: Public

Type: Bug Priority: Critical
Reporter: Aleksey Kondratenko Assignee: Ketaki Gangal
Resolution: Fixed Votes: 0
Labels: ns_server-story
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt: finish-start
has to be done before MB-8775 [DOC 2.2.0] Uninstall followed by re-... Closed
Flagged:
Release Note

 Description   
It was found that in installations with custom data path uninstall doesn't clean up anything. And then it's possible as part of installation to choose same data path.

All database files will be deleted in the process, but _replicator database will be left intact. Which will cause node to think it still have those old XDCR replications it had before uninstall. This will cause tons of internal crashes and UI confusion.

For 2.1.0 we'll document workaround. If you're doing uninstall followed by reinstall, make sure to manually delete _replicator.couch.1 file from data directory before reinstalling.


 Comments   
Comment by Aleksey Kondratenko [ 12/Jun/13 ]
Added 2.1.0 to Fix Versions in order to get this into release notes
Comment by Aleksey Kondratenko [ 12/Jun/13 ]
Particularly, folks should either delete entire data directory manually, or just delete _replicator.couch.1 file in the root of this directory
Comment by kzeller [ 17/Jun/13 ]
Added to RN 2.1.0:

<rnentry type="knownissue">

<version ver="2.1.0a"/>

<class id="install"/>

<issue type="cb" ref="MB-8460"/>


<rntext>

<para>
You may have a installation of Couchbase Server with a custom data path. If you perform a server uninstall and then install 2.1.0 with the same custom path,
some older XDCR replication files may be left intact. This will result in server crashes and incorrect information in Web Console.
The workaround for this case is to make sure you manually delete the <filename>_replicator.couch.1</filename> file from
the server data directory before you install the new version of the server. Alternately you can delete the entire data directory before you install the new version
of the server.
</para>


</rntext>

</rnentry>
Comment by kzeller [ 17/Jun/13 ]
Added to RN 2.1.0:

<rnentry type="knownissue">

<version ver="2.1.0a"/>

<class id="install"/>

<issue type="cb" ref="MB-8460"/>


<rntext>

<para>
You may have a installation of Couchbase Server with a custom data path. If you perform a server uninstall and then install 2.1.0 with the same custom path,
some older XDCR replication files may be left intact. This will result in server crashes and incorrect information in Web Console.
The workaround for this case is to make sure you manually delete the <filename>_replicator.couch.1</filename> file from
the server data directory before you install the new version of the server. Alternately you can delete the entire data directory before you install the new version
of the server.
</para>


</rntext>

</rnentry>
Comment by Aleksey Kondratenko [ 17/Jun/13 ]
Actual bug is still not fixed and will be fixed in 2.1.1
Comment by kzeller [ 17/Jun/13 ]
ok assigned back to you!
Comment by kzeller [ 18/Jun/13 ]
Removing doc as component until needed for future release.....
Comment by Artem Stemkovski [ 21/Aug/13 ]
fixed in 2.2.0
http://review.couchbase.org/28423
Comment by Ketaki Gangal [ 11/Sep/13 ]
Verified in 2.2.0
Generated at Mon Sep 22 08:28:39 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.