You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gobblin.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/05/07 03:52:00 UTC

[jira] [Work logged] (GOBBLIN-2052) Release container which is running yarn task that is stuck in INIT state

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

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

                Author: ASF GitHub Bot
            Created on: 07/May/24 03:51
            Start Date: 07/May/24 03:51
    Worklog Time Spent: 10m 
      Work Description: arpit09 commented on code in PR #3932:
URL: https://github.com/apache/gobblin/pull/3932#discussion_r1591774101


##########
gobblin-yarn/src/main/java/org/apache/gobblin/yarn/YarnAutoScalingManager.java:
##########
@@ -136,6 +149,38 @@ public YarnAutoScalingManager(GobblinApplicationMaster appMaster) {
         DEFAULT_TASK_NUMBER_OF_ATTEMPTS_THRESHOLD);
     this.splitWorkUnitReachThreshold = ConfigUtils.getBoolean(this.config, SPLIT_WORKUNIT_REACH_ATTEMPTS_THRESHOLD,
         DEFAULT_SPLIT_WORKUNIT_REACH_ATTEMPTS_THRESHOLD);
+    this.maxTimeInMinutesBeforeReleasingContainerHavingStuckTask = ConfigUtils.getInt(this.config,
+        STUCK_TASK_CONTAINER_RELEASE_THRESHOLD_MINUTES,
+        DEFAULT_MAX_TIME_MINUTES_TO_RELEASE_CONTAINER_HAVING_HELIX_TASK_THAT_IS_STUCK);
+    this.enableReleasingContainerHavingStuckTask = ConfigUtils.getBoolean(this.config,
+        RELEASE_CONTAINER_IF_TASK_IS_STUCK, false);
+    this.enableDetectStuckTask = ConfigUtils.getBoolean(this.config, DETECT_IF_TASK_IS_STUCK, false);
+    this.detectionForTaskStates = getTaskStatesForWhichDetectionIsEnabled();
+  }
+
+  private HashSet<TaskPartitionState> getTaskStatesForWhichDetectionIsEnabled() {
+    HashSet<TaskPartitionState> taskStates = new HashSet<>();
+    if (this.enableDetectStuckTask) {
+      List<String> taskStatesEnabledForDetection = ConfigUtils.getStringList(this.config, ENABLE_DETECTION_FOR_TASK_STATES);

Review Comment:
   Should there we a default empty list passed when the config is not available ?





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

    Worklog Id:     (was: 917992)
    Time Spent: 1h 50m  (was: 1h 40m)

> Release container which is running yarn task that is stuck in INIT state
> ------------------------------------------------------------------------
>
>                 Key: GOBBLIN-2052
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-2052
>             Project: Apache Gobblin
>          Issue Type: Improvement
>          Components: gobblin-yarn
>            Reporter: pradeep pallikila
>            Assignee: Abhishek Tiwari
>            Priority: Major
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)