Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn if consistency level is overridden #325

Merged

Commits on Aug 27, 2024

  1. Make BatchStatementBuilder.build log warning if statement with

    non-default consistancy level is in the batch
    
    When user does:
    ```
      SimpleStatement simpleStatement = SimpleStatement.builder("SELECT * FROM some_table WHERE a = ?")
        .setConsistencyLevel(DefaultConsistencyLevel.QUORUM).build();
      batchStatementBuilder.addStatement(simpleStatement);
      batchStatementBuilder.build();
    ```
    
    Child statement looses it's consistancy level, which is confusing.
    To warn user it is happening driver will issue log warning.
    dkropachev committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    642ba46 View commit details
    Browse the repository at this point in the history