Sanil15 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_r386727596
##########
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:
I came up with this PR to gather some early thoughts on approach, will clean
it up
----------------------------------------------------------------
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