[ https://issues.apache.org/jira/browse/CASSANDRA-17188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17480070#comment-17480070 ]
Benedict Elliott Smith commented on CASSANDRA-17188: ---------------------------------------------------- Since this work is introducing a new concept to the configuration file that intends to supersede existing concepts, it's sort of inherently a refactor no? Whether or not it migrates anything in this ticket. The context of this discussion was anyway the epic as a whole, and I'm sure I've seen several "migration" tickets that refactor existing config. So I'd say in both ways we're tightly coupled with that, and punting on it is IMO not great. I think the project in general suffers from a failure take a holistic view of its APIs, and I would prefer to see us start thinking about this earlier in the design process. API design is hard, and leaving it until the last minute (so it has a good chance of just being underinvested in, and "good enough") risks perpetuating this legacy of poorly considered/incoherent API, which the yaml is an important part of. Ideally, we would have design documents that all of our config follows, and when we introduce new configurations we should expand the design to account for them so that all future changes remain coherent. That might be too much here, but at least settling on how this work fits in with existing configuration, and its own declared near-future changes seems a reasonable expectation. > Guardrails for consistency levels > --------------------------------- > > Key: CASSANDRA-17188 > URL: https://issues.apache.org/jira/browse/CASSANDRA-17188 > Project: Cassandra > Issue Type: New Feature > Components: Feature/Guardrails > Reporter: Andres de la Peña > Assignee: Andres de la Peña > Priority: Normal > Fix For: 4.x > > > Add guardrails for read/write consistency levels, for example: > {code:java} > # Guardrail to warn about or reject read consistency levels. > # By default all consistency levels are allowed. > read_consistency_levels: > warned: [] > disallowed: [] > # Guardrail to warn about or reject write consistency levels. > # By default all consistency levels are allowed. > write_consistency_levels: > warned: [] > disallowed: [] > {code} -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org