Commit ad578be1 authored by Sheng Wang's avatar Sheng Wang
Browse files

capture error when get getReCosmosConnectionConfig

parent 6ac762b7
Pipeline #24672 failed with stages
in 9 minutes and 37 seconds
......@@ -84,6 +84,9 @@ public class PartitionAndCacheService implements IMongodbConnection {
private String getReCosmosConnection(PartitionInfoAzure infoAzure) {
if (infoAzure.getReCosmosConnectionConfig() == null) {
throw new AppException(HttpStatus.SC_INTERNAL_SERVER_ERROR, "Internal Server Error", "The value of re-cosmos-connection in Partition Service is null");
String connection = String.valueOf(infoAzure.getReCosmosConnectionConfig().getValue());
if (infoAzure.getReCosmosConnectionConfig().isSensitive()) {
return keyvaultClient.getSecretValue(connection);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment