pfcoperez commented on pull request #1785:
URL: https://github.com/apache/zookeeper/pull/1785#issuecomment-1013285690


   > I have a concern about this change - tbh whether the feature should be 
supported at all. If you notice none of the existing 4lw allow changes to the 
"persistent" state of the service. This is on purpose. 4lw have no security - 
eg no authz. 4lw have been a source of security issues in the. past - in 
particular DOS attacks. eg https://issues.apache.org/jira/browse/ZOOKEEPER-2693 
see also 
https://issues.apache.org/jira/issues/?jql=project%20%3D%20ZOOKEEPER%20AND%20text%20~%20%224lw%20dos%22
 Please reconsider this feature, at least in the current form. Thx.
   
   Thanks a lot @phunt , would you be of the same opinion if the command was 
throttled or failed to executed when invoked in periods shorter than 
`autopurge.purgeInterval ` ? 
   
   I've already an not-pushed commit that adds exponential backoff to this 
command. I am willing to refine (basically abstract out the backoff logic and 
extend it to the HTTP version of the coammnd) and push it if I know that'd 
change your opinion. I think simpler solutions, like just waiting for a fix 
interval like `autopurge.purgeInterval ` or just allowing the execution of this 
command when the connection to the ensemble is lost, would work.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@zookeeper.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to