[ 
https://issues.apache.org/jira/browse/HDDS-6931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17630085#comment-17630085
 ] 

Duong commented on HDDS-6931:
-----------------------------

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.

> Support for serialized pre-process validators
> ---------------------------------------------
>
>                 Key: HDDS-6931
>                 URL: https://issues.apache.org/jira/browse/HDDS-6931
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Ethan Rose
>            Priority: Major
>
> Tasks like HDDS-6682 require checking DB state in pre-process validators, 
> which run outside of the serialized OM request flow. They must do follow up 
> checks in the request's validateAndUpdateCache to make sure the checks done 
> in the validator are still correct. This Jira proposes a way to run the 
> validators in the serialized part of request processing so that extra 
> per-request handling is not necessary.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to