Azure / Azure/azure-documentdb-java

NullPointerException when calling readDatabase, need retry logic

オープン
#91 コメント 14 件 リアクション 0 件 担当者 1 名 @srinathnarayanan が担当を希望しています GitHub で見る
bug
主要言語
Java
スター
51
フォーク
52
PR マージ指標
30日以内にマージされた PR はありません

説明

```
[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)
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。