You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Benjamin Lerer (JIRA)" <ji...@apache.org> on 2017/01/20 20:37:27 UTC

[jira] [Commented] (CASSANDRA-13143) Cassandra can accept invalid durations

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

Benjamin Lerer commented on CASSANDRA-13143:
--------------------------------------------

||3.11|[branch|https://github.com/apache/cassandra/compare/trunk...blerer:13143-3.11]|[utest|http://cassci.datastax.com/view/Dev/view/blerer/job/blerer-13143-3.11-testall/]|[dtests|http://cassci.datastax.com/view/Dev/view/blerer/job/blerer-13143-3.11-dtest/]|

The patch fix the validation and add some tests for it.

> Cassandra can accept invalid durations
> --------------------------------------
>
>                 Key: CASSANDRA-13143
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13143
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Benjamin Lerer
>
> A duration can be positive or negative. If the duration is positive the months, days and nanoseconds must be greater or equals to zero. If the duration is negative the months, days and nanoseconds must be smaller or equals to zero.
> Currently, it is possible to send to C* a duration which does not respect that rule and the data will not be reject.



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