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

CQL3 ALTER TABLE command causes NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 1.1.0
    • Component/s: None
    • Labels:
    • Environment:

      INFO 16:07:11,757 Cassandra version: 1.1.0-rc1-SNAPSHOT
      INFO 16:07:11,757 Thrift API version: 19.30.0
      INFO 16:07:11,758 CQL supported versions: 2.0.0,3.0.0-beta1 (default: 2.0.0)

    • Severity:
      Normal

      Description

      To reproduce the problem:

      ./cqlsh --cql3
      Connected to Test Cluster at localhost:9160.
      [cqlsh 2.2.0 | Cassandra 1.1.0-rc1-SNAPSHOT | CQL spec 3.0.0 | Thrift protocol 19.30.0]
      Use HELP for help.

      cqlsh> CREATE KEYSPACE test34 WITH strategy_class = 'org.apache.cassandra.locator.SimpleStrategy' AND strategy_options:replication_factor='1';

      cqlsh> USE test34;

      cqlsh:test34> CREATE TABLE users (
      ... password varchar,
      ... gender varchar,
      ... session_token varchar,
      ... state varchar,
      ... birth_year bigint,
      ... pk varchar,
      ... PRIMARY KEY (pk)
      ... );

      cqlsh:test34> ALTER TABLE users ADD coupon_code varchar;
      TSocket read 0 bytes

        Attachments

        1. 4163.patch.txt
          3 kB
          paul cannon
        2. 4163.patch-2.txt
          3 kB
          paul cannon

          Activity

            People

            • Assignee:
              thepaul paul cannon
              Reporter:
              khahn K. B. Hahn
              Authors:
              paul cannon
              Reviewers:
              Jonathan Ellis
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: