Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-3055

The token is not renewed properly if it's shared by jobs (oozie) in DelegationTokenRenewer

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      After YARN-2964, there is only one timer to renew the token if it's shared by jobs.
      In removeApplicationFromRenewal, when going to remove a token, and the token is shared by other jobs, we will not cancel the token.
      Meanwhile, we should not cancel the timerTask, also we should not remove it from allTokens. Otherwise for the existing submitted applications which share this token will not get renew any more, and for new submitted applications which share this token, the token will be renew immediately.

      For example, we have 3 applications: app1, app2, app3. And they share the token1. See following scenario:
      1). app1 is submitted firstly, then app2, and then app3. In this case, there is only one token renewal timer for token1, and is scheduled when app1 is submitted
      2). app1 is finished, then the renewal timer is cancelled. token1 will not be renewed any more, but app2 and app3 still use it, so there is problem.

      Attachments

        1. YARN-3055.001.patch
          2 kB
          Yi Liu
        2. YARN-3055.002.patch
          3 kB
          Yi Liu
        3. YARN-3055.patch
          17 kB
          Daryn Sharp
        4. YARN-3055.patch
          18 kB
          Daryn Sharp

        Issue Links

          Activity

            People

              daryn Daryn Sharp
              hitliuyi Yi Liu
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: