Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-8460

Uninstall followed by re-install may leave xdcr _replicator database intact causing badness

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.0.1, 2.1.0
    • Fix Version/s: 2.2.0
    • Component/s: installer, ns_server
    • Security Level: Public
    • Labels:
    • Flagged:
      Release Note
    • Sprint:
      12/Aug - 30/Aug

      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.

        Issue Links

        # Subject Project Status CR V
        For Gerrit Dashboard: &For+MB-8460=message:MB-8460

          Activity

          alkondratenko Aleksey Kondratenko (Inactive) created issue -
          alkondratenko Aleksey Kondratenko (Inactive) made changes -
          Field Original Value New Value
          Fix Version/s 2.1.0 [ 10418 ]
          Hide
          alkondratenko Aleksey Kondratenko (Inactive) added a comment -

          Added 2.1.0 to Fix Versions in order to get this into release notes

          Show
          alkondratenko Aleksey Kondratenko (Inactive) added a comment - Added 2.1.0 to Fix Versions in order to get this into release notes
          maria Maria McDuff (Inactive) made changes -
          Summary Uninstall followed by re-install may leave xdcr _replicator database intact causing badness [DOC 2.1] Uninstall followed by re-install may leave xdcr _replicator database intact causing badness
          maria Maria McDuff (Inactive) made changes -
          Assignee Aleksey Kondratenko [ alkondratenko ] Karen Zeller [ kzeller ]
          Hide
          alkondratenko Aleksey Kondratenko (Inactive) added a comment -

          Particularly, folks should either delete entire data directory manually, or just delete _replicator.couch.1 file in the root of this directory

          Show
          alkondratenko Aleksey Kondratenko (Inactive) added a comment - Particularly, folks should either delete entire data directory manually, or just delete _replicator.couch.1 file in the root of this directory
          kzeller kzeller made changes -
          Component/s documentation [ 10012 ]
          Hide
          kzeller kzeller added a comment -

          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>

          Show
          kzeller kzeller added a comment - 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>
          kzeller kzeller made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          kzeller kzeller added a comment -

          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>

          Show
          kzeller kzeller added a comment - 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>
          kzeller kzeller made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          kzeller kzeller made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          kzeller kzeller made changes -
          Summary [DOC 2.1] Uninstall followed by re-install may leave xdcr _replicator database intact causing badness [Doc'd] Uninstall followed by re-install may leave xdcr _replicator database intact causing badness
          kzeller kzeller made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          kzeller kzeller made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Hide
          alkondratenko Aleksey Kondratenko (Inactive) added a comment -

          Actual bug is still not fixed and will be fixed in 2.1.1

          Show
          alkondratenko Aleksey Kondratenko (Inactive) added a comment - Actual bug is still not fixed and will be fixed in 2.1.1
          alkondratenko Aleksey Kondratenko (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Assignee Karen Zeller [ kzeller ] Aleksey Kondratenko [ alkondratenko ]
          Hide
          kzeller kzeller added a comment -

          ok assigned back to you!

          Show
          kzeller kzeller added a comment - ok assigned back to you!
          kzeller kzeller made changes -
          Component/s documentation [ 10012 ]
          kzeller kzeller made changes -
          Labels documentation
          Hide
          kzeller kzeller added a comment -

          Removing doc as component until needed for future release.....

          Show
          kzeller kzeller added a comment - Removing doc as component until needed for future release.....
          wayne Wayne Siu made changes -
          Summary [Doc'd] Uninstall followed by re-install may leave xdcr _replicator database intact causing badness Uninstall followed by re-install may leave xdcr _replicator database intact causing badness
          wayne Wayne Siu made changes -
          Fix Version/s 2.1.0 [ 10418 ]
          anil Anil Kumar made changes -
          Summary Uninstall followed by re-install may leave xdcr _replicator database intact causing badness [RN-2.1.0 DONE] Uninstall followed by re-install may leave xdcr _replicator database intact causing badness
          artem Artem Stemkovski made changes -
          Assignee Aleksey Kondratenko [ alkondratenko ] Artem Stemkovski [ artem ]
          maria Maria McDuff (Inactive) made changes -
          Summary [RN-2.1.0 DONE] Uninstall followed by re-install may leave xdcr _replicator database intact causing badness Uninstall followed by re-install may leave xdcr _replicator database intact causing badness
          maria Maria McDuff (Inactive) made changes -
          Link This issue has to be done before MB-8775 [ MB-8775 ]
          alkondratenko Aleksey Kondratenko (Inactive) made changes -
          Labels ns_server-story
          alkondratenko Aleksey Kondratenko (Inactive) made changes -
          Rank Ranked higher
          maria Maria McDuff (Inactive) made changes -
          Priority Major [ 3 ] Critical [ 2 ]
          anil Anil Kumar made changes -
          Rank Ranked higher
          anil Anil Kumar made changes -
          Rank Ranked higher
          anil Anil Kumar made changes -
          Sprint Sprint 1 [ 37 ]
          artem Artem Stemkovski made changes -
          Status Reopened [ 4 ] In Progress [ 3 ]
          Hide
          artem Artem Stemkovski added a comment -
          Show
          artem Artem Stemkovski added a comment - fixed in 2.2.0 http://review.couchbase.org/28423
          artem Artem Stemkovski made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          maria Maria McDuff (Inactive) made changes -
          Assignee Artem Stemkovski [ artem ] Ketaki Gangal [ ketaki ]
          Hide
          ketaki Ketaki Gangal added a comment -

          Verified in 2.2.0

          Show
          ketaki Ketaki Gangal added a comment - Verified in 2.2.0
          ketaki Ketaki Gangal made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              ketaki Ketaki Gangal
              Reporter:
              alkondratenko Aleksey Kondratenko (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Agile

                  Gerrit Reviews

                  There are no open Gerrit changes