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

parsePath should handle empty paths well

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.7.0
    • Component/s: Hdfs Plugin
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: