Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-10922

In HS2 doAs=false mode, file system related errors in one query causes other failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0, 1.1.0, 1.2.0
    • 1.2.1
    • None
    • None

    Description

      Warehouse class has a few methods that close file system object on errors.
      With doAs=false, since all queries use the same HS2 ugi, the filesystem object is shared across queries/threads. When the close on one filesystem object gets called, it leads to filesystem object used in other threads also get closed and any files registered for deletion on exit also getting deleted.

      There is also no close being done in case of the happy code path.

      Attachments

        1. HIVE-10922.1.patch
          4 kB
          Thejas Nair

        Issue Links

          Activity

            People

              thejas Thejas Nair
              thejas Thejas Nair
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: