Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-892

parsePath should handle empty paths well

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.0
    • 1.7.0
    • Hdfs Plugin
    • None

    Description

      A Null pointer exception in parsePath is manifested as :
      java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.SentryFilterDDLTask. Unable to alter table. java.lang.NullPointerException
      at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:279)

      SentryMetastorePostEventListener is called from the DDLTask and the NullPointerException stack trace seems to be lost due to Sun optimization (see http://stackoverflow.com/a/3010106).

      Attachments

        1. SENTRY-892.patch
          0.7 kB
          Sravya Tirukkovalur

        Issue Links

          Activity

            People

              sravya Sravya Tirukkovalur
              sravya Sravya Tirukkovalur
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: