cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew F. Dennis (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-944) system.test_thrift_server.TestMutations.test_batch_mutate_standard_columns appears to be non deterministic
Date Fri, 02 Apr 2010 17:24:27 GMT

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

Matthew F. Dennis commented on CASSANDRA-944:
---------------------------------------------

Sorry, not on a mac, on Linux (see environment field for details )

I was thinking more like lowering the sleep, but putting it in a loop with a much higher max
wait time (like an entire second).

Assuming the test is trying to verify that eventually the correct data shows up (and is not
trying to verify the data shows up in under 0.1 seconds), then I believe something similar
to the following would address the issue.

wait = 1s
start = now
verified = false
while not (verified = try_to_verify) and now < start+wait:
  sleep(0.05)

if not verified:
  fail_test


thoughts?


> system.test_thrift_server.TestMutations.test_batch_mutate_standard_columns appears to
be non deterministic
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-944
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-944
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.6
>         Environment: xubuntu 9.10
> Linux mdennis 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 05:23:09 UTC 2010 i686 GNU/Linux
>            Reporter: Matthew F. Dennis
>
> system.test_thrift_server.TestMutations.test_batch_mutate_standard_columns appears to
be non deterministic.  The first time I ran the thrift tests after a clean checkout it failed.
 However, it did not fail the ~10 times after that.
> {code}
> mdennis@mdennis:~/c/cassandra$ nosetests test/system/test_thrift_server.py 
> ...........E....................................
> ======================================================================
> ERROR: system.test_thrift_server.TestMutations.test_batch_mutate_standard_columns
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/pymodules/python2.6/nose/case.py", line 183, in runTest
>     self.test(*self.arg)
>   File "/home/mdennis/c/cassandra/test/system/test_thrift_server.py", line 318, in test_batch_mutate_standard_columns
>     _assert_column('Keyspace1', column_family, key, 'c1', 'value1')
>   File "/home/mdennis/c/cassandra/test/system/test_thrift_server.py", line 43, in _assert_column
>     raise Exception('expected %s:%s:%s:%s:%s, but was not present' % (keyspace, column_family,
key, column, value) )
> Exception: expected Keyspace1:Standard1:key_27:c1:value1, but was not present
> ----------------------------------------------------------------------
> Ran 48 tests in 184.700s
> FAILED (errors=1)
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message