Sanjay M Pujare created APEXCORE-737:
----------------------------------------

             Summary: AppMaster does not shut down because 
numRequestedContainers becomes negative
                 Key: APEXCORE-737
                 URL: https://issues.apache.org/jira/browse/APEXCORE-737
             Project: Apache Apex Core
          Issue Type: Bug
            Reporter: Sanjay M Pujare
            Assignee: Sanjay M Pujare


A previous fix (for APEXCORE-624) has introduced a regression where 
numRequestedContainers inside StreamingAppMasterService.execute() becomes 
negative because instead of incrementing numRequestedContainers it is being 
decremented under certain conditions as follows:

While processing the YARN response of container allocation/release request, 
numRequestContainers is decremented by newAllocatedContainers.size()  
(correctly). However in case of (alreadyAllocated == true) the decrement should 
be undone by incrementing numRequestContainers (i.e. numRequestContainers++). 
However the current code is decrementing again (i.e. numRequestContainers--) on 
line 886



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to