NullPointerException in com.couchbase.client.core.Core#reconfigureGlobal

This is with com.couchbase.client:java-client:3.3.3:

2022-09-27 06:41:18.166  WARN 7587 --- [      cb-events] com.couchbase.core                       : [com.couchbase.core][ReconfigurationErrorDetectedEvent] Reconfiguration attempt failed because of: java.lang.NullPointerException {"alternateIdentifier":"external","coreId":"0x5fa288ab00000001"}

java.lang.NullPointerException: null
	at com.couchbase.client.core.Core.lambda$reconfigureGlobal$39(Core.java:745) ~[core-io-2.3.3.jar:na]

Scenario is access to a cluster with four nodes, only three of them have an external alternate interface defined. The fourth node is not supposed to serve any client (just the “backup” service running).

Code inspection gives that there is the assumption if one node has an external alternate address defined, then every node has it defined. Which isn’t a valid assumption.

1 Like

Hi @tallinn1960,

Thank you for the report. We’re tracking this as JCBC-1883.

In the meantime, the workaround is to provide at least one alternate address for each node in the cluster. In this case, providing an alternate address for the backup service should make the problem go away.

Thanks,
David