Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3302

GetAuthzEvents should check if auditProvider is null

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.1.0
    • 3.0.0
    • audit

    Description

      Process the auditlog,need to getAuditProvider and getAuthzEvents, when logAuthzAudit, the code is
      if (auditProvider == null || !auditProvider.log(auditEvent))

      { MiscUtil.logErrorMessageByInterval(LOG, "fail to log audit event " + auditEvent); }

      so, when getAuthzEvents should check auditProvider value, when auditProvider is null, there is no need to construct auditEvent, which is time-consuming and will result in the performance decline of service(kakfa broker,namenode, hiveserver2...)

      Attachments

        1. RANGER-3302.patch
          0.9 kB
          Haihui Xu

        Activity

          People

            Seymour Xu Haihui Xu
            Seymour Xu Haihui Xu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: