Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
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
Attachments
Issue Links
- is broken by
-
APEXCORE-624 Shutdown does not work because of incorrect logic in the AppMaster
- Closed
- links to