Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDS-6931. Support for serialized pre-process validators #7698

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

Denisoshka
Copy link

What changes were proposed in this pull request?

HDDS-6931. Support for serialized pre-process validators.

@duongkame in the HDDS-6931 mentioned:
"I think pre-process validation should only perform logic on data which is not supposed to change between pre-process and actual execution in validateAndUpdateCache. Otherwise, that validation should be moved to {{validateAndUpdateCache, }}and is done together with the real data change in a proper lock scope to ensure consistency."

What is the link to the Apache JIRA

HDDS-6931.

How was this patch tested?

Unit tests passed.

Questions:

  • Should we write a message to auditLog if a request fails in preExecute, but not in the validateAndUpdateCache?
  • Could we resolve variables volumeName and bucketName in method preExecute instead of method validateAndUpdateCache in class OMKeysRenameRequest? this could be done by putting these variables as Proto request fields.

@adoroszlai adoroszlai requested a review from kerneltime January 15, 2025 10:04
@adoroszlai adoroszlai requested a review from errose28 January 15, 2025 10:04
@adoroszlai adoroszlai added the om label Jan 15, 2025
@adoroszlai adoroszlai changed the title Hdds 6931 HDDS-6931. Support for serialized pre-process validators Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants