ZitingShen opened a new pull request #1481:
URL: https://github.com/apache/samza/pull/1481


   Problem: when thread pool size is 0 and thread pool is null, 
hostStatisticsMonitor will throw NullPointerException when calculating 
containerActiveThreads and containerThreadPoolSize metrics. This will 
subsequently lead to the physical memory metrics to be missing as well, which 
can trigger alerts, lead to undesirable autosizing, etc.
   
   Solution: add a null check for the thread pool before calculating 
containerActiveThreads and containerThreadPoolSize metrics
   
   ![Screen Shot 2021-03-24 at 3 07 30 
PM](https://user-images.githubusercontent.com/9065044/112391509-42a4d500-8cb5-11eb-8b3d-edeb24917626.png)
   ![Screen Shot 2021-03-24 at 3 07 20 
PM](https://user-images.githubusercontent.com/9065044/112391523-48021f80-8cb5-11eb-86e1-4b68245795c1.png)
   


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


Reply via email to