jack-moseley 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_r392525349
########## 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: Is it necessary to add another lock here? I've added a lock in the flowgraphmonitor (which is where it gets read/set to false), and there is already a lock in this class on when it's set to true. ---------------------------------------------------------------- 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
