Source:
<code>public Map<String, List<SegmentSizeInfo>> getSegmentSizeInfoFromServers(BiMap<String, String> serverEndPoints, String tableNameWithType, int timeoutMs) { int numServers = serverEndPoints.size(); LOGGER.info("Reading segment sizes from servers for table: with timeout: {}ms", numServers, tableNameWithType, timeoutMs); List<String> serverUrls = new ArrayList<>(numServers); BiMap<String, String> endpointsToServers = serverEndPoints.inverse(); for (String endpoint : endpointsToServers.keySet()) { String tableSizeUri = "http://" + endpoint + "/table/" + tableNameWithType + "/size"; serverUrls.add(tableSizeUri); } CompletionServiceHelper completionServiceHelper = new CompletionServiceHelper(_executor, _connectionManager, endpointsToServers); CompletionServiceHelper.CompletionServiceResponse serviceResponse = completionServiceHelper.doMultiGetRequest(serverUrls, tableNameWithType, timeoutMs); Map<String, List<SegmentSizeInfo>> serverToSegmentSizeInfoListMap = new HashMap<>(); int failedParses = 0; for (Map.Entry<String, String> streamResponse : serviceResponse._httpResponses.entrySet()) { try { TableSizeInfo tableSizeInfo = JsonUtils.stringToObject(streamResponse.getValue(), TableSizeInfo.class); serverToSegmentSizeInfoListMap.put(streamResponse.getKey(), tableSizeInfo.segments); } catch (IOException e) { failedParses++; <START> LOGGER.error("Unable to parse server response due to an error: ", e); <END> } } if (failedParses != 0) { LOGGER.warn("Failed to parse segment size info responses from server.", failedParses); } return serverToSegmentSizeInfoListMap; }</code><technical_language>Add server name this log</technical_language>

Target:
public Map<String, List<SegmentSizeInfo>> getSegmentSizeInfoFromServers(BiMap<String, String> serverEndPoints, String tableNameWithType, int timeoutMs) { int numServers = serverEndPoints.size(); LOGGER.info("Reading segment sizes from servers for table: with timeout: {}ms", numServers, tableNameWithType, timeoutMs); List<String> serverUrls = new ArrayList<>(numServers); BiMap<String, String> endpointsToServers = serverEndPoints.inverse(); for (String endpoint : endpointsToServers.keySet()) { String tableSizeUri = "http://" + endpoint + "/table/" + tableNameWithType + "/size"; serverUrls.add(tableSizeUri); } CompletionServiceHelper completionServiceHelper = new CompletionServiceHelper(_executor, _connectionManager, endpointsToServers); CompletionServiceHelper.CompletionServiceResponse serviceResponse = completionServiceHelper.doMultiGetRequest(serverUrls, tableNameWithType, timeoutMs); Map<String, List<SegmentSizeInfo>> serverToSegmentSizeInfoListMap = new HashMap<>(); int failedParses = 0; for (Map.Entry<String, String> streamResponse : serviceResponse._httpResponses.entrySet()) { try { TableSizeInfo tableSizeInfo = JsonUtils.stringToObject(streamResponse.getValue(), TableSizeInfo.class); serverToSegmentSizeInfoListMap.put(streamResponse.getKey(), tableSizeInfo.segments); } catch (IOException e) { failedParses++; LOGGER.error("Unable to parse server response due to an error: ", streamResponse.getKey(), e); } } if (failedParses != 0) { LOGGER.warn("Failed to parse / segment size info responses from servers.", failedParses, serverUrls.size()); } return serverToSegmentSizeInfoListMap; }