cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Jirsa (JIRA)" <>
Subject [jira] [Updated] (CASSANDRA-13794) Fix short read protection logic for querying more rows
Date Wed, 13 Sep 2017 22:33:00 GMT


Jeff Jirsa updated CASSANDRA-13794:
    Labels: Correctness  (was: )

> Fix short read protection logic for querying more rows
> ------------------------------------------------------
>                 Key: CASSANDRA-13794
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Coordination
>            Reporter: Benedict
>            Assignee: Aleksey Yeschenko
>              Labels: Correctness
>             Fix For: 3.0.x, 3.11.x
> Discovered by [~benedict] while reviewing CASSANDRA-13747:
> {quote}
> While reviewing I got a little suspicious of the modified line {{DataResolver}} :479,
as it seemed that n and x were the wrong way around... and, reading the comment of intent
directly above, and reproducing the calculation, they are indeed.
> This is probably a significant enough bug that it warrants its own ticket for record
keeping, though I'm fairly agnostic on that decision.
> I'm a little concerned about our current short read behaviour, as right now it seems
we should be requesting exactly one row, for any size of under-read, which could mean extremely
poor performance in case of large under-reads.
> I would suggest that the outer unconditional {{Math.max}} is a bad idea, has been (poorly)
insulating us from this error, and that we should first be asserting that the calculation
yields a value >= 0 before setting to 1.
> {quote}

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message