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

Credentials readTokenStorageFile to stop wrapping IOEs in IOEs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.8.1
    • 3.1.0
    • security
    • None

    Description

      When Credentials readTokenStorageFile gets an IOE. it catches & wraps with the filename, so losing the exception class information.

      Is this needed. or can it pass everything up?

      If it is needed, well, it's a common pattern: wrapping the exception with the path & operation. Maybe it's time to add an IOE version of NetworkUtils.wrapException() which handles the broader set of IOEs

      Attachments

        1. HADOOP-14788.001.patch
          6 kB
          Ajay Kumar
        2. HADOOP-14788.002.patch
          7 kB
          Ajay Kumar
        3. HADOOP-14788.003.patch
          7 kB
          Ajay Kumar
        4. HADOOP-14788.004.patch
          7 kB
          Ajay Kumar
        5. HADOOP-14788.005.patch
          6 kB
          Ajay Kumar
        6. HADOOP-14788.006.patch
          6 kB
          Ajay Kumar
        7. HADOOP-14788.007.patch
          6 kB
          Ajay Kumar

        Issue Links

          Activity

            People

              ajayydv Ajay Kumar
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: