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

cassandra-stress writes even data when n=0

    XMLWordPrintableJSON

Details

    • Low

    Description

      This is very unintuitive as

      cassandra-stress write n=0 -rate threads=1
      

      will do inserts even with n=0. I guess most people won't ever run with n=0 but this is a nice shortcut for creating some schema without using cqlsh

      This is happening because we're writing 50k rows of warmup data as can be seen below:

      cqlsh> select count(*) from keyspace1.standard1 ;
      
       count
      -------
       50000
      
      (1 rows)
      

      We can avoid writing warmup data using

      cassandra-stress write n=0 no-warmup -rate threads=1
      

      but I would still expect to have 0 rows written when specifying n=0.

      Attachments

        Activity

          People

            eduard.tudenhoefner Eduard Tudenhoefner
            eduard.tudenhoefner Eduard Tudenhoefner
            Eduard Tudenhoefner
            Stefania Alborghetti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: