[ 
https://issues.apache.org/jira/browse/GOBBLIN-1438?focusedWorklogId=593078&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-593078
 ]

ASF GitHub Bot logged work on GOBBLIN-1438:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 06/May/21 23:57
            Start Date: 06/May/21 23:57
    Worklog Time Spent: 10m 
      Work Description: jack-moseley commented on a change in pull request 
#3272:
URL: https://github.com/apache/gobblin/pull/3272#discussion_r627837492



##########
File path: 
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/DagManager.java
##########
@@ -372,16 +372,17 @@ public synchronized void setActive(boolean active) {
         //Initializing state store for persisting Dags.
         this.dagStateStore = createDagStateStore(config, topologySpecMap);
         this.failedDagStateStore = 
createDagStateStore(ConfigUtils.getConfigOrEmpty(config, 
FAILED_DAG_STATESTORE_PREFIX).withFallback(config), topologySpecMap);
+        Set<String> failedDagIds = 
Collections.synchronizedSet(this.failedDagStateStore.getDagIds());

Review comment:
       That is what I am doing, see the changes in `beginResumingDag` just 
below this. The reason for still keeping this list is that it's used to know 
which dags are old enough to delete from the failed dag state store, and also 
it could avoid some calls to mysql (if calling resume with an invalid dag). The 
list of dagIds is only strings so it shouldn't be large in memory.




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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 593078)
    Time Spent: 1h 20m  (was: 1h 10m)

> Only load failed dags at time of resume
> ---------------------------------------
>
>                 Key: GOBBLIN-1438
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1438
>             Project: Apache Gobblin
>          Issue Type: Improvement
>            Reporter: Jack Moseley
>            Priority: Major
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to