doris icon indicating copy to clipboard operation
doris copied to clipboard

[fix](log)Audit log status is incorrect

Open hf200012 opened this issue 2 years ago • 2 comments

Audit log status is incorrect

  1. If it is an operation that needs to be forwarded to the master, the sql execution fails, but the status of the non-master audit log record operation is OK, but the master records ERR
  2. The above operation also caused duplicate records, who should operate the records

The revised scheme is:

  1. Who operates who records
  2. If it is forward to master, the status of the operation is transmitted to the client through RPC to ensure the correctness of the status record

Proposed changes

Issue Number: close #xxx

Problem summary

Describe your changes.

Checklist(Required)

  1. Does it affect the original behavior:
    • [ ] Yes
    • [x] No
    • [ ] I don't know
  2. Has unit tests been added:
    • [ ] Yes
    • [x] No
    • [ ] No Need
  3. Has document been added or modified:
    • [ ] Yes
    • [x] No
    • [ ] No Need
  4. Does it need to update dependencies:
    • [ ] Yes
    • [x] No
  5. Are there any changes that cannot be rolled back:
    • [ ] Yes (If Yes, please explain WHY)
    • [x] No

Further comments

If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

hf200012 avatar Sep 21 '22 11:09 hf200012

PR approved by at least one committer and no changes requested.

github-actions[bot] avatar Sep 22 '22 08:09 github-actions[bot]

PR approved by anyone and no changes requested.

github-actions[bot] avatar Sep 22 '22 08:09 github-actions[bot]