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

"show schema" in CLI outputs invalid text structure that cannot be replayed (easily tweakable though)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.8.6
    • Legacy/Tools
    • None
    • Low

    Description

      Log explaining the problem. Trouble happens at the "and replication_factor = 1" string

      [default@unknown] connect cassandra2/9160;
      Connected to: "Lab1" on cassandra2/9160

      • Create a keyspace with a pretty simple definition
        [default@unknown] create keyspace foo
        ... with placement_strategy = 'SimpleStrategy'
        ... and strategy_options = [ {replication_factor : 1}

        ];
        f9e13340-d58f-11e0-0000-e3f60146f2df
        Waiting for schema agreement...
        ... schemas agree across the cluster
        [default@unknown] use foo;
        Authenticated to keyspace: foo

      • Copy the schema so we can paste it later
        [default@foo] show schema;
        create keyspace foo
        and replication_factor = 1
        with placement_strategy = 'SimpleStrategy'
        and strategy_options = [ {replication_factor : 1}

        ];

      use foo;

      • Remove the keyspace, so we can paste the exact same text above
        [default@foo] drop keyspace foo;
        07c93a70-d590-11e0-0000-e3f60146f2df
        Waiting for schema agreement...
        ... schemas agree across the cluster
      • Paste the schema shown above as result of the 'show schema' command
        [default@unknown] create keyspace foo
        ... and replication_factor = 1
        ... with placement_strategy = 'SimpleStrategy'
        ... and strategy_options = [ {replication_factor : 1}

        ];
        No enum constant org.apache.cassandra.cli.CliClient.AddKeyspaceArgument.REPLICATION_FACTOR

      • Presented an error that should not occur if show schema generated valid text

      Attachments

        1. CASSANDRA-3129.patch
          1.0 kB
          Pavel Yaskevich

        Activity

          People

            xedin Pavel Yaskevich
            udontknow Evaldo Gardenali
            Pavel Yaskevich
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: