Cassandra
  1. Cassandra
  2. CASSANDRA-5012

alter table alter causes TSocket read 0 bytes

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Fix Version/s: 1.2.0 rc1
    • Component/s: Core
    • Labels:
      None
    • Environment:

      On Mac OSX ./cqlsh
      Connected to Test Cluster at localhost:9160.
      [cqlsh 2.3.0 | Cassandra 1.2.0-rc1-SNAPSHOT | CQL spec 3.0.0 | Thrift protocol 19.35.0]

      Description

      Altering the type of a clustering key column causes TSocket error.

      To reproduce the problem:
      1. CREATE SCHEMA "Excalibur" WITH REPLICATION =

      { 'class' : 'SimpleStrategy', 'replication_factor' : 3 }

      ;

      2. CREATE TABLE "Excalibur".Test ( id int, species text, color text, PRIMARY KEY ((id, species), color)) WITH compaction =

      { 'class' : 'SizeTieredCompactionStrategy', 'min_compaction_threshold' : 6 }

      ;

      3. Alter table "Excalibur".test ALTER color type int;

      Expected result: Error message saying something like, "Changing the type of a clustering key is not allowed."

      Actual result: TSocket read 0 bytes

      1. 5012.patch
        5 kB
        Sylvain Lebresne
      2. log.txt
        12 kB
        K. B. Hahn

        Activity

        Gavin made changes -
        Workflow patch-available, re-open possible [ 12753676 ] reopen-resolved, no closed status, patch-avail, testing [ 12758871 ]
        Gavin made changes -
        Workflow no-reopen-closed, patch-avail [ 12736606 ] patch-available, re-open possible [ 12753676 ]
        Sylvain Lebresne made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Reviewer jbellis
        Resolution Fixed [ 1 ]
        Sylvain Lebresne made changes -
        Fix Version/s 1.2.0 rc1 [ 12323481 ]
        Fix Version/s 1.2.0 [ 12323243 ]
        K. B. Hahn made changes -
        Attachment log.txt [ 12555817 ]
        Sylvain Lebresne made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Assignee Sylvain Lebresne [ slebresne ]
        Fix Version/s 1.2.0 [ 12323243 ]
        Sylvain Lebresne made changes -
        Attachment 5012.patch [ 12555770 ]
        K. B. Hahn made changes -
        Field Original Value New Value
        Description Altering the type of a clustering key column cause TSocket error.

        To reproduce the problem:
        1. CREATE SCHEMA "Excalibur" WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 };

        2. CREATE TABLE "Excalibur".Test ( id int, species text, color text, PRIMARY KEY ((id, species), color)) WITH compaction = { 'class' : 'SizeTieredCompactionStrategy', 'min_compaction_threshold' : 6 };

        3. Alter table "Excalibur".test ALTER color type int;

        Expected result: Error message saying something like, "Changing the type of a clustering key is not allowed."

        Actual result: TSocket read 0 bytes
        Altering the type of a clustering key column causes TSocket error.

        To reproduce the problem:
        1. CREATE SCHEMA "Excalibur" WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 };

        2. CREATE TABLE "Excalibur".Test ( id int, species text, color text, PRIMARY KEY ((id, species), color)) WITH compaction = { 'class' : 'SizeTieredCompactionStrategy', 'min_compaction_threshold' : 6 };

        3. Alter table "Excalibur".test ALTER color type int;

        Expected result: Error message saying something like, "Changing the type of a clustering key is not allowed."

        Actual result: TSocket read 0 bytes
        K. B. Hahn created issue -

          People

          • Assignee:
            Sylvain Lebresne
            Reporter:
            K. B. Hahn
            Reviewer:
            Jonathan Ellis
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development