[
https://issues.apache.org/jira/browse/GOBBLIN-1380?focusedWorklogId=546665&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-546665
]
ASF GitHub Bot logged work on GOBBLIN-1380:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 03/Feb/21 01:27
Start Date: 03/Feb/21 01:27
Worklog Time Spent: 10m
Work Description: arjun4084346 commented on a change in pull request
#3220:
URL: https://github.com/apache/incubator-gobblin/pull/3220#discussion_r569017978
##########
File path:
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/DagManager.java
##########
@@ -1144,6 +1154,15 @@ private void cleanUp() {
for (String dagId: dagIdstoClean) {
cleanUpDag(dagId);
}
+
+ for (Iterator<Map.Entry<String, Dag<JobExecutionPlan>>> iter =
this.failedDags.entrySet().iterator(); iter.hasNext();) {
Review comment:
This should work. But my only concern is that we are looping over all
the failed dags to check if their clean up time has come at the end of every
DagManager poll cycle. Should we do this in a separate cleaning thread in
DagManager, which runs, say every 1 hour or so?
##########
File path:
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/DagManager.java
##########
@@ -1144,6 +1154,15 @@ private void cleanUp() {
for (String dagId: dagIdstoClean) {
cleanUpDag(dagId);
}
+
+ for (Iterator<Map.Entry<String, Dag<JobExecutionPlan>>> iter =
this.failedDags.entrySet().iterator(); iter.hasNext();) {
Review comment:
The javadoc also says "Because this thread runs in a regular interval,
we should avoid doing repetitive work inside it."
----------------------------------------------------------------
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: 546665)
Time Spent: 1h 10m (was: 1h)
> Add retention to failed dag state store
> ---------------------------------------
>
> Key: GOBBLIN-1380
> URL: https://issues.apache.org/jira/browse/GOBBLIN-1380
> Project: Apache Gobblin
> Issue Type: Improvement
> Reporter: Jack Moseley
> Priority: Major
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)