[ https://issues.apache.org/jira/browse/CASSANDRA-18013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17630273#comment-17630273 ]
Jacek Lewandowski edited comment on CASSANDRA-18013 at 11/9/22 7:30 AM: ------------------------------------------------------------------------ ||PR||j8||j11|| |[trunk|https://github.com/apache/cassandra/pull/1985]|[j8 (?)|https://app.circleci.com/pipelines/github/jacek-lewandowski/cassandra/307/workflows/a00cd8c0-7a50-4b83-ba2e-cb99b0c8b319]|[j11 (?)|https://app.circleci.com/pipelines/github/jacek-lewandowski/cassandra/307/workflows/0a9922aa-53ea-4b05-91ba-148eec2a49a7]| |[4.1|https://github.com/apache/cassandra/pull/1986]|[j8 (?)|https://app.circleci.com/pipelines/github/jacek-lewandowski/cassandra/306/workflows/fa3cd055-763a-4db6-9106-c1ae3691cd02]|[j11 (/)|https://app.circleci.com/pipelines/github/jacek-lewandowski/cassandra/306/workflows/2ec96e61-5593-4802-9ff1-33dd6a0bd562]| |[4.0|https://github.com/apache/cassandra/pull/1987]|[j8 (/) - the failed sets were rerun without errors|https://app.circleci.com/pipelines/github/jacek-lewandowski/cassandra/305/workflows/42ea925e-54cd-494e-957c-288fd8a45baa]|[j11 (/)|https://app.circleci.com/pipelines/github/jacek-lewandowski/cassandra/305/workflows/ec7d5189-43e0-4eee-bdb1-68088223fb43]| |[3.11|https://github.com/apache/cassandra/pull/1968]|[(/) - same failures as on base branch|https://app.circleci.com/pipelines/github/jacek-lewandowski/cassandra/304/workflows/e9462c50-dac7-43ca-af0f-c089f76c5455]| was (Author: jlewandowski): ||PR||j8||j11|| |[trunk|https://github.com/apache/cassandra/pull/1985]|| |[4.1|https://github.com/apache/cassandra/pull/1986]|[j8 (?)|https://app.circleci.com/pipelines/github/jacek-lewandowski/cassandra/306/workflows/fa3cd055-763a-4db6-9106-c1ae3691cd02]|[j11 (/)|https://app.circleci.com/pipelines/github/jacek-lewandowski/cassandra/306/workflows/2ec96e61-5593-4802-9ff1-33dd6a0bd562]| |[4.0|https://github.com/apache/cassandra/pull/1987]|[j8 (/) - the failed sets were rerun without errors|https://app.circleci.com/pipelines/github/jacek-lewandowski/cassandra/305/workflows/42ea925e-54cd-494e-957c-288fd8a45baa]|[j11 (/)|https://app.circleci.com/pipelines/github/jacek-lewandowski/cassandra/305/workflows/ec7d5189-43e0-4eee-bdb1-68088223fb43]| |[3.11|https://github.com/apache/cassandra/pull/1968]|[(/) - same failures as on base branch|https://app.circleci.com/pipelines/github/jacek-lewandowski/cassandra/304/workflows/e9462c50-dac7-43ca-af0f-c089f76c5455]|| > Splitter sometimes creates different number of splits than requested > -------------------------------------------------------------------- > > Key: CASSANDRA-18013 > URL: https://issues.apache.org/jira/browse/CASSANDRA-18013 > Project: Cassandra > Issue Type: Bug > Components: Local/Compaction > Reporter: Jacek Lewandowski > Assignee: Jacek Lewandowski > Priority: Normal > Fix For: 3.11.x, 4.1, 4.2, 4.x > > Time Spent: 10m > Remaining Estimate: 0h > > {{Splitter}} in some cases may produce one split more than requested. When it > happens, it fails with assertion error when assertions are enabled. > Test to reproduce the issue: > {code:java} > Splitter splitter = getSplitter(Murmur3Partitioner.instance); > long lt = 0; > long rt = 31; > Range<Token> range = new > Range<>(getWrappedToken(Murmur3Partitioner.instance, BigInteger.valueOf(lt)), > > getWrappedToken(Murmur3Partitioner.instance, BigInteger.valueOf(rt))); > for (int i = 1; i <= (rt - lt); i++) > { > List<Token> splits = splitter.splitOwnedRanges(i, > Arrays.asList(new Splitter.WeightedRange(1.0d, range)), false); > logger.info("{} splits of {} are: {}", i, range, splits); > Assertions.assertThat(splits).hasSize(i); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org