Azure / Azure/azure-documentdb-java

NullPointerException when calling readDatabase, need retry logic

Open
#91 14 comments 0 reactions 1 assignee Claimed by @srinathnarayanan View on GitHub
bug
Dominant language
Java
Stars
51
Forks
52
PR merge metrics
No merged PRs in 30d

Description

```
[warn] c.m.a.d.DocumentClient - Failed to retrieve database account information. java.net.UnknownHostException: xxxxxxxxx.documents.azure.com: Try again
...
Error while getting DocumentDb database
java.lang.NullPointerException: null
at com.microsoft.azure.documentdb.internal.BaseDatabaseAccountConfigurationProvider.getMaxReplicaSetSize(BaseDatabaseAccountConfigurationProvider.javdockersdockea:33)
at com.microsoft.azure.documentdb.internal.directconnectivity.ConsistencyReader.read(ConsistencyReader.java:44)
at com.microsoft.azure.documentdb.internal.directconnectivity.ReplicatedResourceClient.invoke(ReplicatedResourceClient.java:59)
at com.microsoft.azure.documentdb.internal.directconnectivity.ServerStoreModel$1.apply(ServerStoreModel.java:84)
at com.microsoft.azure.documentdb.internal.RetryUtility.executeStoreClientRequest(RetryUtility.java:113)
at com.microsoft.azure.documentdb.internal.directconnectivity.ServerStoreModel.processMessage(ServerStoreModel.java:89)
at com.microsoft.azure.documentdb.DocumentClient$8.apply(DocumentClient.java:2980)
at com.microsoft.azure.documentdb.internal.RetryUtility.executeDocumentClientRequest(RetryUtility.java:58)
at com.microsoft.azure.documentdb.DocumentClient.doRead(DocumentClient.java:2986)
at com.microsoft.azure.documentdb.DocumentClient.readDatabase(DocumentClient.java:490)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.