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

Jay Zhuang commented on CASSANDRA-14601:
----------------------------------------

The problem is because 
[{{supports_v5_protocol}}|https://github.com/apache/cassandra-dtest/blob/master/paging_test.py#L3422]
 is enabled in the test, but not in the client session: 
[{{dtest_setup.py:333}}|https://github.com/apache/cassandra-dtest/blob/master/dtest_setup.py#L333],
 so the {{exc.error_code_map}} is not set. Here is a patch to make the check 
consistent, please review:
|[14601|https://github.com/cooldoger/cassandra-dtest/tree/14601]|

Technically, v5_protocol is supported from {{3.10}}, but changing 
[{{dtest_setup.py:333}}|https://github.com/apache/cassandra-dtest/blob/master/dtest_setup.py#L333]
 to {{3.10}} will have the same problem as CASSANDRA-14596: unable to parse the 
response from prepare statement.

> [dtest] test_failure_threshold_deletions - paging_test.TestPagingWithDeletions
> ------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-14601
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14601
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Testing
>            Reporter: Jason Brown
>            Assignee: Jay Zhuang
>            Priority: Minor
>              Labels: dtest
>
> failing dtest on 3.11 only. Error output from pytest:
> {noformat}
>         except ReadFailure as exc:
>             if supports_v5_protocol:
> >               assert exc.error_code_map is not None
> E               assert None is not None
> E                +  where None = ReadFailure('Error from server: code=1300 
> [Replica(s) failed to execute read] message="Operation failed - received 0 
> r...d 2 failures" info={\'consistency\': \'ALL\', \'required_responses\': 2, 
> \'received_responses\': 0, \'failures\': 2}',).error_code_map
> paging_test.py:3447: AssertionError
> {noformat}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to