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

GetAuthzEvents should check if auditProvider is null

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Seymour Xu Haihui Xu
            Seymour Xu Haihui Xu

            Dates

              Created:
              Updated:

              Slack

                Issue deployment