Sanil15 commented on a change in pull request #1219: SAMZA-2373: Container 
Placement Service (core functionality) for container move and restart
URL: https://github.com/apache/samza/pull/1219#discussion_r352921792
 
 

 ##########
 File path: 
samza-core/src/main/java/org/apache/samza/clustermanager/ContainerManager.java
 ##########
 @@ -143,9 +230,23 @@ void handleContainerLaunchFail(String processorId, String 
containerId, String pr
    * @param resourceRequestState state of request in {@link ContainerAllocator}
    */
   @VisibleForTesting
-  void handleExpiredRequestWithHostAffinityEnabled(String processorId, String 
preferredHost,
+  void handleExpiredRequestForControlActionOrHostAffinityEnabled(String 
processorId, String preferredHost,
       SamzaResourceRequest request, ContainerAllocator allocator, 
ResourceRequestState resourceRequestState) {
     boolean resourceAvailableOnAnyHost = 
allocator.hasAllocatedResource(ResourceRequestState.ANY_HOST);
+
+    if (hasActiveContainerPlacementAction(processorId)) {
+      resourceRequestState.cancelResourceRequest(request);
+      handleControlActionFailure(processorId, 
getPlacementActionMetadata(processorId).get(),
 
 Review comment:
   sure & when Once #1227 is merged, this method will create a response message 
& dispatch it via 
ContainerPlacementHandler#writeContainerPlacementResponseMessage

----------------------------------------------------------------
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

Reply via email to