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

Stress chooses batch size 1 if cluster column name in YAML is not all lower case

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • None
    • Legacy/Tools
    • None
    • Normal

    Description

      If you give the cluster column name in mixed case then the batch size is always chosen as 1, for example:

      columnspec:
        - name: creationdate
          size: fixed(10)
          population: seq(1..4000000)
        - name: UniqueSequenceNumber      # Note mixed case  
          cluster: uniform(100..200)
      
      insert:
        partitions: fixed(1)              
        batchtype: UNLOGGED
        select: uniform(10..15)/200
      

      Running this results in

      Generating batches with [1..1] partitions and [1..1] rows (of [1..1] total rows in the partitions)
      

      Changing the cluster column name to uniquesequencenumber gives the expected results:

      Generating batches with [1..1] partitions and [5..15] rows (of [100..200] total rows in the partitions)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            sourcedelica Eric Pederson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: