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

'Alter table' when it includes collections makes cqlsh hang

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Urgent
    • Resolution: Fixed
    • 1.2.0 rc2
    • None
    • None
    • Ubuntu 12.04 LTS
      3.2.0-23-virtual

    • Critical

    Description

      Having just installed 1.2.0-beta3 issue the following CQL into cqlsh:

      drop keyspace test;
      
      create keyspace test with replication = {
                'class': 'SimpleStrategy',
                'replication_factor': '1'
              };
      
      use test;
      
      create table users (
                  user_id text PRIMARY KEY,
                  first_name text,
                  last_name text,
                  email_addresses set<text>
              );
      
      alter table users add mailing_address_lines list<text>;
      

      As soon as you issue the alter table statement cqlsh hangs, and the java process hosting Cassandra consumes 100% of a single core's CPU.

      If the alter table doesn't include a collection, it runs fine.

      Attachments

        1. 5064-v2.txt
          13 kB
          Sylvain Lebresne
        2. 5064.txt
          4 kB
          Sylvain Lebresne

        Activity

          People

            slebresne Sylvain Lebresne
            enigmacurry Ryan McGuire
            Sylvain Lebresne
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: