You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2018/02/23 18:24:01 UTC

[GitHub] rawlinp commented on a change in pull request #1908: Changes for Backup Edge Cache Group

rawlinp commented on a change in pull request #1908: Changes for Backup Edge Cache Group
URL: https://github.com/apache/incubator-trafficcontrol/pull/1908#discussion_r170325325
 
 

 ##########
 File path: traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/core/loc/NetworkNode.java
 ##########
 @@ -106,15 +107,24 @@ public static NetworkNode generateTree(final JsonNode json, final boolean verify
                 final String loc = czIter.next();
                 final JsonNode locData = JsonUtils.getJsonNode(coverageZones, loc);
                 final JsonNode coordinates = locData.get("coordinates");
+                final JsonNode backupList = locData.get("backupList");
                 Geolocation geolocation = null;
+                List<String> bkCacheLoc = null;
 
                 if (coordinates != null && coordinates.has("latitude") && coordinates.has("longitude")) {
                     final double latitude = coordinates.get("latitude").asDouble();
                     final double longitude = coordinates.get("longitude").asDouble();
                     geolocation = new Geolocation(latitude, longitude);
                 }
 
-                if (!addNetworkNodesToRoot(root, loc, locData, geolocation, useDeep)) {
+                if (backupList != null) {
+                        bkCacheLoc = new ArrayList<>();
 
 Review comment:
   too much indentation here

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services