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

Jon Haddad commented on CASSANDRA-14030:
----------------------------------------

This is failing in trunk, but for a different reason now:

{noformat}
disk_balance_test.py:189: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
disk_balance_test.py:242: in _disk_balance_after_boundary_change_test
    self._assert_balanced_after_boundary_change(node1, total_keys, lcs)
disk_balance_test.py:334: in _assert_balanced_after_boundary_change
    self.assert_balanced(node)
disk_balance_test.py:175: in assert_balanced
    assert_almost_equal(*sums, error=0.1, error_message=node.name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

args = (138370, 127114, 131664, 126452, 141735)
kwargs = {'error': 0.1, 'error_message': 'node1'}, error = 0.1, vmax = 141735
vmin = 126452, error_message = 'node1'

    def assert_almost_equal(*args, **kwargs):
        """
        Assert variable number of arguments all fall within a margin of error.
        @params *args variable number of numerical arguments to check
        @params error Optional margin of error. Default 0.16
        @params error_message Optional error message to print. Default ''
    
        Examples:
        assert_almost_equal(sizes[2], init_size)
        assert_almost_equal(ttl_session1, ttl_session2[0][0], error=0.005)
        """
        error = kwargs['error'] if 'error' in kwargs else 0.16
        vmax = max(args)
        vmin = min(args)
        error_message = '' if 'error_message' not in kwargs else 
kwargs['error_message']
        assert vmin > vmax * (1.0 - error) or vmin == vmax, \
>           "values not within {:.2f}% of the max: {} ({})".format(error * 100, 
> args, error_message)
E       AssertionError: values not within 10.00% of the max: (138370, 127114, 
131664, 126452, 141735) (node1)

tools/assertions.py:191: AssertionError
{noformat}

> disk_balance_bootstrap_test - disk_balance_test.TestDiskBalance fails: 
> Missing: ['127.0.0.5.* now UP']:
> -------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-14030
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14030
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Testing
>            Reporter: Michael Kjellman
>            Priority: Major
>
> disk_balance_bootstrap_test - disk_balance_test.TestDiskBalance fails: 
> Missing: ['127.0.0.5.* now UP']:
> 15 Nov 2017 11:28:03 [node4] Missing: ['127.0.0.5.* now UP']:
> .....
> See system.log for remainder
> -------------------- >> begin captured logging << --------------------
> dtest: DEBUG: cluster ccm directory: /tmp/dtest-NZzhNb
> dtest: DEBUG: Done setting configuration options:
> {   'initial_token': None,
>     'num_tokens': '32',
>     'phi_convict_threshold': 5,
>     'range_request_timeout_in_ms': 10000,
>     'read_request_timeout_in_ms': 10000,
>     'request_timeout_in_ms': 10000,
>     'truncate_request_timeout_in_ms': 10000,
>     'write_request_timeout_in_ms': 10000}
> --------------------- >> end captured logging << ---------------------
>   File "/usr/lib/python2.7/unittest/case.py", line 329, in run
>     testMethod()
>   File "/home/cassandra/cassandra-dtest/disk_balance_test.py", line 44, in 
> disk_balance_bootstrap_test
>     node5.start(wait_for_binary_proto=True)
>   File 
> "/home/cassandra/env/local/lib/python2.7/site-packages/ccmlib/node.py", line 
> 706, in start
>     node.watch_log_for_alive(self, from_mark=mark)
>   File 
> "/home/cassandra/env/local/lib/python2.7/site-packages/ccmlib/node.py", line 
> 520, in watch_log_for_alive
>     self.watch_log_for(tofind, from_mark=from_mark, timeout=timeout, 
> filename=filename)
>   File 
> "/home/cassandra/env/local/lib/python2.7/site-packages/ccmlib/node.py", line 
> 488, in watch_log_for
>     raise TimeoutError(time.strftime("%d %b %Y %H:%M:%S", time.gmtime()) + " 
> [" + self.name + "] Missing: " + str([e.pattern for e in tofind]) + ":\n" + 
> reads[:50] + ".....\nSee {} for remainder".format(filename))
> "15 Nov 2017 11:28:03 [node4] Missing: ['127.0.0.5.* now UP']:\n.....\nSee 
> system.log for remainder\n-------------------- >> begin captured logging << 
> --------------------\ndtest: DEBUG: cluster ccm directory: 
> /tmp/dtest-NZzhNb\ndtest: DEBUG: Done setting configuration options:\n{   
> 'initial_token': None,\n    'num_tokens': '32',\n    'phi_convict_threshold': 
> 5,\n    'range_request_timeout_in_ms': 10000,\n    
> 'read_request_timeout_in_ms': 10000,\n    'request_timeout_in_ms': 10000,\n   
>  'truncate_request_timeout_in_ms': 10000,\n    'write_request_timeout_in_ms': 
> 10000}\n--------------------- >> end captured logging << 
> ---------------------"



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to