Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-4046

when creating keyspace with simple strategy, it should only acception "replication_factor" as an option

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.1.1
    • None
    • None
    • Low

    Description

      currently I could do this:

      [default@unknown] create keyspace test
      ... with placement_strategy = 'SimpleStrategy'
      ... and strategy_options = {DC : testdc, replication_factor :1};
      ebc5f430-6d47-11e1-0000-edee3ea2cbff
      Waiting for schema agreement...
      ... schemas agree across the cluster
      [default@unknown]

      while i don't think this creates any "problem" in terms of the actual replication being used for the CL , we probably should acknowledge to the user that "DC : testdc" is not an valid option for the SimpleStrategy.

      Attachments

        1. 4046_warn_invalid_options.diff
          4 kB
          Dave Brosius

        Activity

          People

            dbrosius David Brosius
            cywjackson Jackson Chung
            David Brosius
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: