cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua McKenzie (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-9873) Windows dtest: ignore_failure_policy_test fails
Date Thu, 23 Jul 2015 20:59:04 GMT

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

Joshua McKenzie commented on CASSANDRA-9873:
--------------------------------------------

[PR for dtest here|https://github.com/riptano/cassandra-dtest/pull/415]

os.chmod in python doesn't work on Windows except to set a file as read-only via stat.S_IWRITE
and stat.S_IREAD. Our test expected further mutations to timeout due to CLS allocation failures,
but Windows will happily continue allocating and swapping segments - we can't even delete
the segments on Windows thanks to the whole "mmap'ed segments can't be deleted" thing.

Tweaked the test so that the flow on linux is unchanged, and on Windows the logical flow is
1) confirm error occurred in CL management, 2) confirm we didn't terminate the node, and 3)
confirm we didn't stop the CL processing on the node.

I expect we may have some other failures where we use {{_provoke_commitlog_failure}} on Windows
since, while it provokes the failure, it doesn't fail quite as hard as it does on linux.

> Windows dtest: ignore_failure_policy_test fails
> -----------------------------------------------
>
>                 Key: CASSANDRA-9873
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9873
>             Project: Cassandra
>          Issue Type: Sub-task
>            Reporter: Joshua McKenzie
>            Assignee: Joshua McKenzie
>            Priority: Minor
>              Labels: Windows
>             Fix For: 2.2.x
>
>
> {noformat}
> ======================================================================
> FAIL: ignore_failure_policy_test (commitlog_test.TestCommitLog)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\src\cassandra-dtest\commitlog_test.py", line 251, in ignore_failure_policy_test
>     """)
> AssertionError: (<class 'cassandra.OperationTimedOut'>, <class 'cassandra.WriteTimeout'>)
not raised
> -------------------- >> begin captured logging << --------------------
> dtest: DEBUG: cluster ccm directory: c:\temp\dtest-fzrrz1
> --------------------- >> end captured logging << ---------------------
> ----------------------------------------------------------------------
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message