cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph Lynch (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-14862) TestTopology.test_size_estimates_multidc fails on trunk
Date Fri, 02 Nov 2018 18:53:00 GMT


Joseph Lynch commented on CASSANDRA-14862:

>From Benedict on IRC:
> I might change the language slightly, as I don't think it's 100% clear they should be
returned in the sequence they occur following the search token (like, 95% clear but you need
to think about it), but the important point (that it's depended on) is plenty clear.
> I'd probably personally have written something like "Calculate the natural endpoints
for the given token. They are returned in the order they occur in the ring following the search
token, as defined by the replication strategy", but I don't think it's terribly important{noformat}

Based on this feedback I have pushed an amended commit to ([cafd44c8|].

> TestTopology.test_size_estimates_multidc fails on trunk
> -------------------------------------------------------
>                 Key: CASSANDRA-14862
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Testing
>            Reporter: Joseph Lynch
>            Assignee: Joseph Lynch
>            Priority: Minor
>              Labels: 4.0-QA
>             Fix For: 4.0
> The sorting of natural replicas in {{SimpleStrategy.calculateNaturalReplicas}} committed
as part of [e645b917|]
for CASSANDRA-14726 has broken the {{TestTopology.test_size_estimates_multidc}} dtest ([example
run|]) as the "primary" ranges
have now changed. I'm actually surprised only a single dtest fails as I believe we've broken
multi-dc {{SimpleStrategy}} reasonably badly.
> In particular the {{SimpleStrategy.calculateNaturalReplicas}} method cannot sort the
endpoints by datacenter first. It has to leave them in the order that it found them else change
which replicas are considered "primary" replicas (which mostly impacts repair and size estimates
and the such).
> I have written a regression unit test for the SimpleStrategy and am running it through
circleci now. Will post the patch shortly.

This message was sent by Atlassian JIRA

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

View raw message