rmatharu commented on a change in pull request #1296: SAMZA-2475: Add a
allocated resource expiry timeout in samza yarn type of apps
URL: https://github.com/apache/samza/pull/1296#discussion_r385886080
##########
File path:
samza-core/src/main/java/org/apache/samza/clustermanager/ContainerAllocator.java
##########
@@ -261,6 +261,14 @@ protected void runStreamProcessor(SamzaResourceRequest
request, String preferred
throw new SamzaException("Expected resource for Processor ID: " +
request.getProcessorId() + " was unavailable on host: " + preferredHost);
}
+ if(clusterResourceManager.isResourceExpired(resource)) {
+ LOG.info("Lease for the resource has been expired for resource: {}
request: {}", resource, request);
Review comment:
Resource has expired, re-requesting resource for ..... processorId:
Having the processorId: pattern in the logs makes for easy searcheability
when we're debugging
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services