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

[XDCR] Replication to ElasticSearch 1.7 doesn't work in Spock

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.6.0, 5.0.0
    • 4.6.0, 5.0.0
    • XDCR
    • CB - Spock
      ElasticSearch - 1.7
      Elasticsearch Plugin - 2.1.1
    • Untriaged
    • Centos 64-bit
    • Unknown

    Description

      Steps to reproduce:
      1. create xdcr remote cluster pointing to ES server
      2. start replication
      ==>
      Replication fails with : Failed to connect to cluster reference remoteCluster/6gEjIZbREnqTkfWang8cJYTOtDZScE0vPwVdYlPm9qk=

      The replication to ES works fine in 4.5 GA

      It seems like xdcr now calls the <remote cluster>/pools/nodes api which fails in case of ES.

      4.5 log:
      ReplicationSpecService 2016-11-16T15:58:01.862-08:00 [INFO] Start ValidateAddReplicationSpec, sourceBucket=bucket-1, targetCluster=Elastic, targetBucket=perf_elastic_index
      ReplicationSpecService 2016-11-16T15:58:01.887-08:00 [INFO] Result from local bucket look up: err_source=<nil>, time taken=24.846301ms
      ReplicationSpecService 2016-11-16T15:58:01.895-08:00 [INFO] Successfully retrieved target cluster reference. time take=8.278156ms

      Spock log:
      ReplicationSpecService 2016-11-16T15:40:13.776-08:00 [INFO] Start ValidateAddReplicationSpec, sourceBucket=bucket-1, targetCluster=Elastic, targetBucket=perf_elastic_index
      ReplicationSpecService 2016-11-16T15:40:13.802-08:00 [INFO] Result from local bucket look up: err_source=<nil>, time taken=25.922461ms
      RemoteClusterService 2016-11-16T15:40:13.803-08:00 [INFO] Remote cluster reference remoteCluster/6gEjIZbREnqTkfWang8cJYTOtDZScE0vPwVdYlPm9qk= has a bad connectivity, didn't populate alternative connection strings. err=Failed on calling host=172.23.99.211:9091, path=/pools/nodes, err=<nil>, statusCode=404
      RemoteClusterService 2016-11-16T15:40:13.803-08:00 [INFO] nodes_connStrs from old cache =[]
      RemoteClusterService 2016-11-16T15:40:13.803-08:00 [INFO] Connstr 172.23.99.211:9091 in remote cluster reference failed to connect. Try to use alternative connStr
      AdminPort 2016-11-16T15:40:13.803-08:00 [ERROR] Error creating replication. errorsMap=map[toCluster:cannot find remote cluster
      err = Failed to connect to cluster reference remoteCluster/6gEjIZbREnqTkfWang8cJYTOtDZScE0vPwVdYlPm9qk=
      ]
      AdminPort 2016-11-16T15:40:13.803-08:00 [INFO] Finished doCreateReplicationRequest call

      Logs attached.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              yu Yu Sui (Inactive)
              oleksandr.gyryk Alex Gyryk (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty