[BP 7.1.5] - XDCR - Error parsing memcached ssl port of remote cluster

Description

There are a few issues I see. 

First one, https://src.couchbase.org/source/xref/7.1.3/goproj/src/github.com/couchbase/goxdcr/utils/utils.go#998 if the call returns an error, the error is not logged or returned. We need to have this information for debugging.

Second one, in the same routine, we look for internal address first, and then replace it with external address. Internal address may be unresolvable. If external is requested, we should use external, and only use internal if alternateAdresses is not available.

Third, we should skip the node if it is not KV.

 

Issue

Resolution

When ipv4 only mode was used, and full encryption only had an alternate address configured where the internal address was unresolvable, XDCR resulted in an error when it contacted the target data nodes.

The specific scenario has been fixed so that replication can now proceed.

Components

Fix versions

Labels

Environment

None

Link to Log File, atop/blg, CBCollectInfo, Core dump

None

Release Notes Description

None

Activity

Show:

Ayush Nayyar July 6, 2023 at 9:56 AM

Verified on 7.1.5-3863. Create remote and replication work without errors.

CB robot June 23, 2023 at 6:59 PM

Build couchbase-server-7.1.5-3859 contains goxdcr commit 6df4004 with commit message:
: fix Error parsing memcached ssl port of remote cluster

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Is this a Regression?

Unknown

Triage

Untriaged

Issue Impact

external

Story Points

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created June 22, 2023 at 7:00 PM
Updated March 21, 2025 at 2:50 AM
Resolved June 23, 2023 at 5:24 PM
Instabug