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

Brandon Williams commented on CASSANDRA-18679:
----------------------------------------------

One way to fix this would be to move the log message inside 
validateExpectedOptions() so it won't be present unless the NTS creation is 
successful.

> Attempted NTS creation logs even on failure
> -------------------------------------------
>
>                 Key: CASSANDRA-18679
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18679
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL/Semantics
>            Reporter: Brandon Williams
>            Assignee: Saran Vinaiyak
>            Priority: Normal
>             Fix For: 4.0.x, 4.1.x, 5.x
>
>         Attachments: image-2023-07-30-20-41-01-193.png
>
>
> If you try to create a keyspace with a nonexistent DC, you will still see a 
> log like this:
> {noformat}
> INFO  [Native-Transport-Requests-1] 2023-07-21 11:02:40,062 
> NetworkTopologyStrategy.java:93 - Configured datacenter replicas are 
> DC2:rf(3), DC1:rf(1)
> {noformat}
> even if you receive:
> {noformat}
> ConfigurationException: Unrecognized strategy option {DC2} passed to 
> NetworkTopologyStrategy for keyspace test
> {noformat}
> which prevented the creation.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to