Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-1941

Zeppelin CronJob with release option result in deadlock

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6.0, 0.6.1, 0.6.2
    • 0.7.0
    • Interpreters
    • None

    Description

      There is a deadlock in concurrent cron job execution with release resource option.

      Scenario:
      Two notebook run with cron job that release resource after job finished.

      In Notebook.CronJob.execute() method:
      T1. note.runAll(); // locked paragraphs(lock) and wait to interpreterSettings(lock)

      T2. notebook.getInterpreterFactory().restart() //locked(interpreterSettings) and wait for paragraphs(lock) during jobAbort.

      This will trigger a deadlock that cause zeppelin hang.

      Detail stack trace please refer `deadlock_cronjob.jstack`

      Attachments

        1. deadlock_cronjob.jstack
          166 kB
          OopsOutOfMemory

        Activity

          People

            OopsOutOfMemory OopsOutOfMemory
            OopsOutOfMemory OopsOutOfMemory
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified