'Test to validate that a ReadFailure is returned from the node when a specified threshold of tombstombs is
reached.
test_tombstomb_overflow_read_failure First sets the tombstone failure threshold down to a level that allows it
to be more easily encountered. We then create some wide rows and ensure they are deleted appropriately. This
produces the correct amount of tombstombs. Upon making a simple query we expect to get a read failure back
from the coordinator.
@since 2.6.0, 3.7.0
@jira_ticket PYTHON-238, PYTHON-619
@expected_result Appropriate write failures from the coordinator
@test_category queries:basic'

def test_tombstone_overflow_read_failure(self):

    self._perform_cql_statement('\n                                                CREATE    TABLE    test3rf.test2    (\n                                                                k    int,\n                                                                v0    int,\n                                                                v1    int,    PRIMARY    KEY    (k,v0))\n                                                ', consistency_level=ConsistencyLevel.ALL, expected_exception=None)
    statement = self.session.prepare('INSERT    INTO    test3rf.test2    (k,    v0,v1)    VALUES        (1,?,1)')
    parameters = [(x,) for x in range(3000)]
    self.execute_concurrent_args_helper(self.session, statement, parameters)
    statement = self.session.prepare('DELETE    v1    FROM    test3rf.test2    WHERE    k    =    1    AND    v0    =?')
    parameters = [(x,) for x in range(2001)]
    self.execute_concurrent_args_helper(self.session, statement, parameters)
    self._perform_cql_statement('\n                                                SELECT    *    FROM    test3rf.test2    WHERE    k    =    1\n                                                ', consistency_level=ConsistencyLevel.ALL, expected_exception=ReadFailure)
    self._perform_cql_statement('\n                                                DROP    TABLE    test3rf.test2;\n                                                ', consistency_level=ConsistencyLevel.ALL, expected_exception=None)
