sv2000 commented on a change in pull request #2924: [GOBBLIN-1084] Refresh flowgraph when templates are modified URL: https://github.com/apache/incubator-gobblin/pull/2924#discussion_r392551050
########## File path: gobblin-service/src/main/java/org/apache/gobblin/service/modules/template_catalog/ObservingFSFlowEdgeTemplateCatalog.java ########## @@ -49,6 +51,10 @@ private Map<URI, List<JobTemplate>> jobTemplateMap = new ConcurrentHashMap<>(); private ReadWriteLock rwLock; + @Getter + @Setter + private boolean shouldRefreshFlowGraph = false; Review comment: Sorry, I did not mean to add a lock at this assignment. But my comment was more to ensure that access to the variable is guarded by a lock. ---------------------------------------------------------------- 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
