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

[CBM] Investigate whether our REST client should fall back to internal addresses when no alternate address is available

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • None
    • 7.1.0
    • tools
    • None
    • 1

    Description

      What's the issue?
      As stated in MB-47393, it's possible not to define an alternate address/port for a given service. By default, if 'cbbackupmgr' finds a zero-valued port, the backup/restore for the service will be skipped (this will be logged).

      Logging Function

      func handleServiceError(err error, who, what string) bool {
      	if rest.IsServiceNotAvailable(err) || rest.IsServiceNotSupported(err) {
      		clog.Log("(Couchbase) (%s) Will not be transferring %s because %s", who, what, errutil.Unwrap(err))
      		return true
      	}
       
      	return false
      }
      

      What's the task?
      We should investigate whether we should fallback to the internal hostname/port if not alternate hostname/port is available.

      If we should be, this change would probably need to be make in 'gocbcore' since it appears to have the same behavior as us in this regard (but I may be wrong).

      Attachments

        Issue Links

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

          Activity

            People

              james.lee James Lee
              james.lee James Lee
              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