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

Anu Engineer commented on HDDS-2903:
------------------------------------

The quote is from Jamie Zawinski:
bq. Some people, when confronted with a problem, think "I know, I'll use 
regular expressions." Now they have two problems.

Source: 
https://blog.codinghorror.com/regular-expressions-now-you-have-two-problems/

So the user now needs to know that they can only create raft.grpc.(server or 
tls) namespace keys or raft.server.cannot use any number here? 
How is any user going to know any of this? how is any programmer going to know 
any of this? 

Is this short cut worth the pain it is going to cause in the future? 

[~bharat], [~arp], [~shashikant], [~elek], [~xyao]

 


>  Use regex to match with ratis properties when creating ratis server
> --------------------------------------------------------------------
>
>                 Key: HDDS-2903
>                 URL: https://issues.apache.org/jira/browse/HDDS-2903
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Ozone Datanode
>            Reporter: Bharat Viswanadham
>            Assignee: Bharat Viswanadham
>            Priority: Major
>              Labels: pull-request-available, teragentest
>             Fix For: 0.5.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> This Jira is to use regex which are matching with ratis server and ratis grpc 
> properties and set them when creating ratis server. 
> Advantages:
>  # We can use ratis properties directly, don't need to create corresponding 
> ozone config.
>  # When new properties are added in ratis server, we can set them and use 
> them without any ozone code changes.
> In this Jira not removed the existing properties, if this looks fine, we can 
> remove in a clean up Jira to remove ozone config for ratis server or leave as 
> it is for existing ones.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to