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

Weird/hex "Column Name:" formatting with "describe keyspaces"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Not A Problem
    • None
    • None
    • None
    • Cassandra 0.8.4 (and today's cassandra-0.8 branch)
      java version "1.6.0_20"
      OpenJDK Runtime Environment (IcedTea6 1.9.9) (fedora-54.1.9.9.fc14-x86_64)
      OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

    • Normal

    Description

      Displaying a newly created column family with column_metadata displays some kind of hex representation of the column names instead of something more human readable:

      [default@test] create column family Foo3 with column_metadata = [{ column_name: mycolumn, validation_class: UTF8Type }, { column_name: mycolumn2, validation_class: UTF8Type }];
      4f266c60-d236-11e0-0000-242d50cf1fbf
      Waiting for schema agreement...
      ... schemas agree across the cluster
      [default@test] describe keyspace;                                                                                                                                               
      Keyspace: test:
        Replication Strategy: org.apache.cassandra.locator.NetworkTopologyStrategy
        Durable Writes: true
          Options: [datacenter1:1]
        Column Families:
          ColumnFamily: Foo3
            Key Validation Class: org.apache.cassandra.db.marshal.BytesType
            Default column value validator: org.apache.cassandra.db.marshal.BytesType
            Columns sorted by: org.apache.cassandra.db.marshal.BytesType
            Row cache size / save period in seconds: 0.0/0
            Key cache size / save period in seconds: 200000.0/14400
            Memtable thresholds: 0.2953125/1440/63 (millions of ops/minutes/MB)
            GC grace seconds: 864000
            Compaction min/max thresholds: 4/32
            Read repair chance: 1.0
            Replicate on write: true
            Built indexes: []
            Column Metadata:
              Column Name: fffcfffff2   <--- I expected this to say 'mycolumn' or 'mycolumn2'
                Validation Class: org.apache.cassandra.db.marshal.UTF8Type
              Column Name: ffffffff     <--- I expected this to say 'mycolumn' or 'mycolumn2'
                Validation Class: org.apache.cassandra.db.marshal.UTF8Type
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jborgstrom Jonas Borgström
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: