cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Yaskevich (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-2200) stress.java doesn't insert the correct amount of rows
Date Fri, 18 Feb 2011 22:54:41 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-2200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996634#comment-12996634
] 

Pavel Yaskevich commented on CASSANDRA-2200:
--------------------------------------------

oh sorry for misleading comment, of course this is about reads. for write however - each thread
was a portion of range of keys to generate and that range is calculated in the following way:

(keysPerThread * (idx + keysToSkip), keysPerThread * (idx + 1)), where _idx_ - index of the
current thread, _keysPerThread_ - totalKeys / threadCount, _keysToSkip_ - determined by user
in params.

This is ported from python code (line 203). For some numbers of the total keys and threadCount
it won't generate precise ranges. Seems like we'll need to range one more thread at the end
to generate those missing rows sometimes.

> stress.java doesn't insert the correct amount of rows
> -----------------------------------------------------
>
>                 Key: CASSANDRA-2200
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2200
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Contrib
>    Affects Versions: 0.7.1
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>             Fix For: 0.7.3
>
>
> For example, if you pass -n 2000000 you only get 1999800 (with 300 threads at least,
didn't check if it was related)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message