Uploaded image for project: 'Apache Gobblin'
  1. Apache Gobblin
  2. GOBBLIN-1384

Fix task cancellation to ensure task commit is invoked only after task completes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.16.0
    • 0.17.0
    • gobblin-core
    • None

    Description

      Per the current behavior, the task is marked as completed as soon as task cancellation is invoked, which interrupts the task, and immediately decrements a latch counting the number of running tasks. This implies that GobblinMultiTaskAttempt which monitors this countdown latch, can invoke task commit before the task has completed. This can lead to incorrect behavior in batch mode and potential resource leak in the streaming mode where commit failures potentially leaves some resources open.  

      Attachments

        Activity

          People

            abti Abhishek Tiwari
            sv2000 Sudarshan Vasudevan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m