cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuki Morishita (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-3725) Switch stress tool to using micros
Date Wed, 11 Jan 2012 17:59:38 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-3725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Yuki Morishita updated CASSANDRA-3725:
--------------------------------------

    Attachment: 3725.txt

I found one place which uses milli sec for insertion.
I tested with the attached fix and verified that row got updated second time.
                
> Switch stress tool to using micros
> ----------------------------------
>
>                 Key: CASSANDRA-3725
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3725
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>            Reporter: Cathy Daw
>            Assignee: Yuki Morishita
>            Priority: Trivial
>             Fix For: 1.1
>
>         Attachments: 3725.txt
>
>
> The situation encountered is that after deleting the columns for a row in the cli new
workloads don't update that columns for the rows. Brandon mentioned that stress uses millis,
cli uses micros and therefore row tombstone wins.
> Test Case: Before Delete
> {code}
> // Run: stress --operation=INSERT --num-keys=1  --columns=2 --consistency-level=QUORUM
--column-size=1 --threads=1 --replication-factor=1 --nodes=localhost
> // Run cassandra-cli
> [default@Keyspace1] list Standard1;       
> Using default limit of 100
> -------------------
> RowKey: 30
> => (column=C0, value=63, timestamp=1326259090065)
> => (column=C1, value=63, timestamp=1326259090065)
> 1 Row Returned.
> Elapsed time: 2 msec(s).
> [default@Keyspace1] del Standard1['30'];  
> row removed.
> [default@Keyspace1] list Standard1;     
> Using default limit of 100
> -------------------
> RowKey: 30
> {code}
> Test Case: After Delete
> {code}
> // Run: stress --operation=INSERT --num-keys=1  --columns=2 --consistency-level=QUORUM
--column-size=1 --threads=1 --replication-factor=1 --nodes=localhost
> // Run cassandra-cli
> [default@Keyspace1] list Standard1;
> Using default limit of 100
> -------------------
> RowKey: 30
> 1 Row Returned.
> Elapsed time: 1 msec(s).
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message