You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Massimiliano Tomassi (Jira)" <ji...@apache.org> on 2020/04/02 09:03:00 UTC

[jira] [Updated] (CASSANDRA-15641) No error if consistency_level = SERIAL and unqualified select

     [ https://issues.apache.org/jira/browse/CASSANDRA-15641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Massimiliano Tomassi updated CASSANDRA-15641:
---------------------------------------------
    Resolution: Invalid
        Status: Resolved  (was: Open)

> No error if consistency_level = SERIAL and unqualified select
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-15641
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15641
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL/Semantics
>            Reporter: Konstantin
>            Assignee: Massimiliano Tomassi
>            Priority: Normal
>             Fix For: 4.0-rc
>
>         Attachments: test.py
>
>
> The attached test program produces no errors, while doesn't provide serial consistency. There is no exception that the consistency level is incorrect. It's simply silently downgraded. The issue is not documented either. 
> kostja@atlas ~ % python test.py
> Row(a=1, b=1)
> Row(a=0, b=0)
> Row(a=2, b=2)
> Row(a=3, b=3)
> Row(a=1, b=1)
> Row(a=2, b=2)
> The behavior is contrary to the original intent by LWT author, since the code has the following check: 
>    if (group.queries.size() > 1)
>             throw new InvalidRequestException("SERIAL/LOCAL_SERIAL consistency may only be requested for one partition at a time");
> https://github.com/apache/cassandra/blob/cassandra-3.11/src/java/org/apache/cassandra/service/StorageProxy.java#L1593



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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