Update CsdeRpcInterface.java

This commit is contained in:
Niamh25 2022-12-06 15:57:55 +00:00 committed by GitHub
parent f469294519
commit 3af97d9cbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,7 +204,7 @@ public class CsdeRpcInterface {
kong.unirest.JsonNode body = response.getBody();
// Do not retry if successful.
if(status == 200) {
// Retry until you get an "OK"; it may move to "Validating upload", "Persisting CPI".
// Retry until you get an "OK"; we may see several other responses before the "OK" response.
return !(body.getObject().get("status").equals("OK"));
}
else if (status == 400){
@ -299,7 +299,7 @@ public class CsdeRpcInterface {
LinkedList<String> x500Ids = getConfigX500Ids();
LinkedList<String> OKHoldingShortIds = new LinkedList<>();
// Check that each identity already exists.
// Create a list of X500 IDs we will not need to create VNodes for.
Set<MemberX500Name> existingX500 = new HashSet<>();
kong.unirest.HttpResponse<kong.unirest.JsonNode> vnodeListResponse = getVNodeInfo();