Bootstrap should continue after AuthenticationFailureException

Description

  1. Create a cluster of 3 nodes

  2. Remove or failover the first node

  3. Start application with the removed node in the connection string

  4. An AuthenticationFailureException will be thrown and the SDK will fail to use the next node in the connection string.

The SDK should continue attempting to bootstrap using the next node in the connection string only failing when attempts on all nodes have failed.

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:

Jeffry Morris July 25, 2022 at 11:49 PM
Edited

It appears that this is a regression introduced in https://couchbasecloud.atlassian.net/browse/NCBC-3000#icft=NCBC-3000. The server does return an auth_error response as the node that has been removed no longer can be authenticated against the former credentials as it has been "reset" back to its original state.

The client must continue to authenticate when this happens using any other configured nodes. That is the bug; the client throws an AuthenticationException here and breaks out of the auth loop instead of trying the next node.

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

Details

Assignee

Reporter

Story Points

Components

Sprint

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created July 14, 2022 at 1:51 AM
Updated July 27, 2022 at 2:52 AM
Resolved July 27, 2022 at 2:52 AM
Instabug