Source:
<code>void assignResourceRequests() { while (hasReadyPendingRequest()) { SamzaResourceRequest request = peekReadyPendingRequest().get(); String processorId = request.getProcessorId(); String preferredHost = hostAffinityEnabled ? request.getPreferredHost() : ResourceRequestState.ANY_HOST; Instant requestCreationTime = request.getRequestTimestamp(); LOG.info("Handling assignment for Processor ID: with request {}", processorId, request); if (hasAllocatedResource(preferredHost)) { LOG.info("Found an available container for Processor ID: on the host: {}", processorId, preferredHost); if (hostAffinityEnabled) { state.matchedResourceRequests.incrementAndGet(); } boolean containerLaunchComplete = containerManager.handleContainerLaunch(request, preferredHost, peekAllocatedResource(preferredHost), resourceRequestState, this); if (!containerLaunchComplete) { break; } } else { LOG.info("Did not find any allocated containers for running Processor ID: on the host: {}.", processorId, preferredHost); if (isRequestExpired(request)) { updateExpiryMetrics(request); containerManager.handleExpiredRequest(processorId, preferredHost, request, this, resourceRequestState); if (!hostAffinityEnabled) { <START> LOG.info("Host affinity is disabled on expired request."); <END> break; } } else { LOG.info("Request for Processor ID: on preferred host has not expired yet." + "Request creation time: {}. Current Time: {}. Request timeout: ms", processorId, preferredHost, requestCreationTime, System.currentTimeMillis(), getRequestTimeout(request).toMillis()); break; } } } }</code><technical_language>Replace this: LOG.info("Waiting for resources get allocated for request {}, retries issued host affinity is disabled", request);</technical_language>

Target:
void assignResourceRequests() { while (hasReadyPendingRequest()) { SamzaResourceRequest request = peekReadyPendingRequest().get(); String processorId = request.getProcessorId(); String preferredHost = hostAffinityEnabled ? request.getPreferredHost() : ResourceRequestState.ANY_HOST; Instant requestCreationTime = request.getRequestTimestamp(); LOG.info("Handling assignment for Processor ID: with request {}", processorId, request); if (hasAllocatedResource(preferredHost)) { LOG.info("Found an available container for Processor ID: on the host: {}", processorId, preferredHost); if (hostAffinityEnabled) { state.matchedResourceRequests.incrementAndGet(); } boolean containerLaunchComplete = containerManager.handleContainerLaunch(request, preferredHost, peekAllocatedResource(preferredHost), resourceRequestState, this); if (!containerLaunchComplete) { break; } } else { LOG.info("Did not find any allocated containers for running Processor ID: on the host: {}.", processorId, preferredHost); if (isRequestExpired(request)) { updateExpiryMetrics(request); containerManager.handleExpiredRequest(processorId, preferredHost, request, this, resourceRequestState); if (!hostAffinityEnabled) { LOG.info("Waiting for resources to get allocated for request {}," + " no retries will be issued since host affinity is disabled", request); break; } } else { LOG.info("Request for Processor ID: on preferred host has not expired yet." + "Request creation time: {}. Current Time: {}. Request timeout: ms", processorId, preferredHost, requestCreationTime, System.currentTimeMillis(), getRequestTimeout(request).toMillis()); break; } } } }