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

Improve logging for HMSPath

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Sentry
    • Labels:
      None

      Description

      Currently HMSPath logs too much information when it skips paths which are outside the prefix:

      2017-09-07 15:29:39,041 INFO org.apache.sentry.hdfs.HMSPaths: Path outside prefix
      2017-09-07 15:29:39,040 INFO org.apache.sentry.hdfs.HMSPaths: Skipping to create authzObjPath as it is outside of prefix. authObj = l5_foo.customer_v1 pathElements=[data, blah, l5_blah_blah, CUSTOMER_V1, eap_part_no=12345]
      

      This happens when Sentry sends a full snapshot and when NameNode receives delta snapshots.
      Probably we should log information more clearly and log at DEBUG level.

        Attachments

        1. SENTRY-1932.01.patch
          1 kB
          Arjun Mishra
        2. SENTRY-1932.02.patch
          1 kB
          Arjun Mishra
        3. SENTRY-1932.03.patch
          1 kB
          Arjun Mishra

          Issue Links

            Activity

              People

              • Assignee:
                arjunmishra13 Arjun Mishra
                Reporter:
                akolb Alex Kolbasov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: