Source:
<code>private void processGetBlobInfoResponse(GetRequestInfo getRequestInfo, GetResponse getResponse) throws IOException, MessageFormatException { ServerErrorCode getError = getResponse.getError(); if (getError == ServerErrorCode.No_Error) { int partitionsInResponse = getResponse.getPartitionResponseInfoList().size(); if (partitionsInResponse != 1) { setOperationException(new RouterException( "Unexpected number of partition responses, expected: 1, " + "received: " + partitionsInResponse, RouterErrorCode.UnexpectedInternalError)); onErrorResponse(getRequestInfo.replicaId); } else { getError = getResponse.getPartitionResponseInfoList().get(0).getErrorCode(); if (getError == ServerErrorCode.No_Error) { PartitionResponseInfo partitionResponseInfo = getResponse.getPartitionResponseInfoList().get(0); <START> int objectsInPartitionResponse = partitionResponseInfo.getMessageInfoList().size(); <END> if (objectsInPartitionResponse != 1) { setOperationException(new RouterException( "Unexpected number of messages in a partition response, expected: 1, " + "received: " + objectsInPartitionResponse, RouterErrorCode.UnexpectedInternalError)); onErrorResponse(getRequestInfo.replicaId); } MessageMetadata messageMetadata = partitionResponseInfo.getMessageMetadataList().get(0); handleBody(getResponse.getInputStream(), messageMetadata); operationTracker.onResponse(getRequestInfo.replicaId, true); if (RouterUtils.isRemoteReplica(routerConfig, getRequestInfo.replicaId)) { logger.trace("Cross colo request successful for remote replica in ", getRequestInfo.replicaId.getDataNodeId().getDatacenterName()); routerMetrics.crossColoSuccessCount.inc(); } } else { if (getError != ServerErrorCode.No_Error) { logger.trace("Replica returned error with response correlationId ", getRequestInfo.replicaId.getDataNodeId(), getError, getResponse.getCorrelationId()); } processServerError(getError); if (getError == ServerErrorCode.Blob_Deleted || getError == ServerErrorCode.Blob_Expired) { operationCompleted = true; } else { onErrorResponse(getRequestInfo.replicaId); } } } } else { logger.trace("Replica returned an error for a GetBlobInfoRequest with response correlationId : ", getRequestInfo.replicaId.getDataNodeId(), getError, getResponse.getCorrelationId()); onErrorResponse(getRequestInfo.replicaId); } }</code><technical_language>minor. name variable "msgsInPartitionResponse"</technical_language>

Target:
private void processGetBlobInfoResponse(GetRequestInfo getRequestInfo, GetResponse getResponse) throws IOException, MessageFormatException { ServerErrorCode getError = getResponse.getError(); if (getError == ServerErrorCode.No_Error) { int partitionsInResponse = getResponse.getPartitionResponseInfoList().size(); if (partitionsInResponse != 1) { setOperationException(new RouterException( "Unexpected number of partition responses, expected: 1, " + "received: " + partitionsInResponse, RouterErrorCode.UnexpectedInternalError)); onErrorResponse(getRequestInfo.replicaId); } else { getError = getResponse.getPartitionResponseInfoList().get(0).getErrorCode(); if (getError == ServerErrorCode.No_Error) { PartitionResponseInfo partitionResponseInfo = getResponse.getPartitionResponseInfoList().get(0); int msgsInResponse = partitionResponseInfo.getMessageInfoList().size(); if (msgsInResponse != 1) { setOperationException(new RouterException( "Unexpected number of messages in a partition response, expected: 1, " + "received: " + msgsInResponse, RouterErrorCode.UnexpectedInternalError)); onErrorResponse(getRequestInfo.replicaId); } else { MessageMetadata messageMetadata = partitionResponseInfo.getMessageMetadataList().get(0); handleBody(getResponse.getInputStream(), messageMetadata); operationTracker.onResponse(getRequestInfo.replicaId, true); if (RouterUtils.isRemoteReplica(routerConfig, getRequestInfo.replicaId)) { logger.trace("Cross colo request successful for remote replica in ", getRequestInfo.replicaId.getDataNodeId().getDatacenterName()); routerMetrics.crossColoSuccessCount.inc(); } } } else { if (getError != ServerErrorCode.No_Error) { logger.trace("Replica returned error with response correlationId ", getRequestInfo.replicaId.getDataNodeId(), getError, getResponse.getCorrelationId()); } processServerError(getError); if (getError == ServerErrorCode.Blob_Deleted || getError == ServerErrorCode.Blob_Expired) { operationCompleted = true; } else { onErrorResponse(getRequestInfo.replicaId); } } } } else { logger.trace("Replica returned an error for a GetBlobInfoRequest with response correlationId : ", getRequestInfo.replicaId.getDataNodeId(), getError, getResponse.getCorrelationId()); onErrorResponse(getRequestInfo.replicaId); } }