Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15808

Harden Token service loader use

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.1, 3.1.2
    • 3.3.0, 3.1.2, 3.2.1
    • security
    • None

    Description

      The Hadoop token service loading (identifiers, renewers...) works provided there's no problems loading any registered implementation. If there's a classloading or classcasting problem, the exception raised will stop all token support working; possibly the application not starting.

      This matters for S3A/HADOOP-14556 as things may not load if aws-sdk isn't on the classpath. It probably lurks in the wasb/abfs support too, but things have worked there because the installations with DT support there have always had correctly set up classpaths.

      Fix: do what we did for the FS service loader. Catch failures to instantiate a service provider impl and skip it

      Attachments

        1. HADOOP-15808-003.patch
          10 kB
          Steve Loughran
        2. HADOOP-15808-002.patch
          10 kB
          Steve Loughran
        3. HADOOP-15808-001.patch
          10 kB
          Steve Loughran

        Issue Links

          Activity

            People

              stevel@apache.org Steve Loughran
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: