prateekm commented on issue #1241: SAMZA-2424: AM should cache and serve 
serialized Job Model to containers
URL: https://github.com/apache/samza/pull/1241#issuecomment-571260241
 
 
   @shanthoosh @rmatharu Thanks for the review.
   
   This PR does not affect LocalStoreMonitor:
   1. This PR updates the only place where jobModelRef is set to store the 
serialized job model instead of unserialized job model. So this shouldn't 
affect any usages of jobModelRef. Btw, I don't think this field needs to be an 
AtomicReference since its only updated once. @shanthoosh do you know if 
JobModelManager#apply is called more than once in any scenario (YARN or 
Standalone)? If not, I can change it to a regular field.
   
   2. LocalStoreMonitor doesn't use the JobModel served from the AM. It reads 
the coordinator stream and creates the JobModel itself, in a rather roundabout 
way. The code path is: `LocalStoreMonitor -> JobsClient#getTasks ---HTTP 
Request---> TasksResource#getTasks -> SamzaTaskProxy#getTasks -> 
CoordinatorStreamSystemConsumer/LocalityManger read`

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