[jira] [Commented] (CASSANDRA-14688) Update protocol spec and class level doc with protocol checksumming details
[ https://issues.apache.org/jira/browse/CASSANDRA-14688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17000224#comment-17000224 ] Chris Splinter commented on CASSANDRA-14688: [~samt] is there anything else needed here to get this in? > Update protocol spec and class level doc with protocol checksumming details > --- > > Key: CASSANDRA-14688 > URL: https://issues.apache.org/jira/browse/CASSANDRA-14688 > Project: Cassandra > Issue Type: Task > Components: Legacy/Documentation and Website >Reporter: Sam Tunnicliffe >Assignee: Sam Tunnicliffe >Priority: Normal > Labels: protocolv5 > Fix For: 4.0, 4.0-beta > > > CASSANDRA-13304 provides an option to add checksumming to the frame body of > native protocol messages. The native protocol spec needs to be updated to > reflect this ASAP. We should also verify that the javadoc comments describing > the on-wire format in > {{o.a.c.transport.frame.checksum.ChecksummingTransformer}} are up to date. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Updated] (CASSANDRA-12729) Cassandra-Stress: Use single seed in UUID generation
[ https://issues.apache.org/jira/browse/CASSANDRA-12729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Splinter updated CASSANDRA-12729: --- Fix Version/s: 3.x Status: Patch Available (was: Open) Patch attached > Cassandra-Stress: Use single seed in UUID generation > > > Key: CASSANDRA-12729 > URL: https://issues.apache.org/jira/browse/CASSANDRA-12729 > Project: Cassandra > Issue Type: Bug > Components: Tools >Reporter: Chris Splinter >Priority: Minor > Fix For: 3.x > > Attachments: CASSANDRA-12729-trunk.patch > > > While testing the [new sequence > distribution|https://issues.apache.org/jira/browse/CASSANDRA-12490] for the > user module of cassandra-stress I noticed that half of the expected rows (848 > / 1696) were produced when using a single uuid primary key. > {code} > table: player_info_by_uuid > table_definition: | > CREATE TABLE player_info_by_uuid ( > player_uuid uuid, > player_full_name text, > team_name text, > weight double, > height double, > position text, > PRIMARY KEY (player_uuid) > ) > columnspec: > - name: player_uuid > size: fixed(32) # no. of chars of UUID > population: seq(1..1696) # 53 active players per team, 32 teams = 1696 > players > insert: > partitions: fixed(1) # 1 partition per batch > batchtype: UNLOGGED # use unlogged batches > select: fixed(1)/1 # no chance of skipping a row when generating inserts > {code} > The following debug output showed that we were over-incrementing the seed > {code} > SeedManager.next.index: 341824 > SeriesGenerator.Seed.next: 0 > SeriesGenerator.Seed.start: 1 > SeriesGenerator.Seed.totalCount: 20 > SeriesGenerator.Seed.next % totalCount: 0 > SeriesGenerator.Seed.start + (next % totalCount): 1 > PartitionOperation.ready.seed: org.apache.cassandra.stress.generate.Seed@1 > DistributionSequence.nextWithWrap.next: 0 > DistributionSequence.nextWithWrap.start: 1 > DistributionSequence.nextWithWrap.totalCount: 20 > DistributionSequence.nextWithWrap.next % totalCount: 0 > DistributionSequence.nextWithWrap.start + (next % totalCount): 1 > DistributionSequence.nextWithWrap.next: 1 > DistributionSequence.nextWithWrap.start: 1 > DistributionSequence.nextWithWrap.totalCount: 20 > DistributionSequence.nextWithWrap.next % totalCount: 1 > DistributionSequence.nextWithWrap.start + (next % totalCount): 2 > Generated uuid: --0001--0002 > {code} > This patch fixes this issue by calling {{identityDistribution.next()}} once > [instead of > twice|https://github.com/apache/cassandra/blob/trunk/tools/stress/src/org/apache/cassandra/stress/generate/values/UUIDs.java/#L37] > when generating UUID's -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (CASSANDRA-12729) Cassandra-Stress: Use single seed in UUID generation
[ https://issues.apache.org/jira/browse/CASSANDRA-12729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Splinter updated CASSANDRA-12729: --- Attachment: CASSANDRA-12729-trunk.patch > Cassandra-Stress: Use single seed in UUID generation > > > Key: CASSANDRA-12729 > URL: https://issues.apache.org/jira/browse/CASSANDRA-12729 > Project: Cassandra > Issue Type: Bug > Components: Tools >Reporter: Chris Splinter >Priority: Minor > Attachments: CASSANDRA-12729-trunk.patch > > > While testing the [new sequence > distribution|https://issues.apache.org/jira/browse/CASSANDRA-12490] for the > user module of cassandra-stress I noticed that half of the expected rows (848 > / 1696) were produced when using a single uuid primary key. > {code} > table: player_info_by_uuid > table_definition: | > CREATE TABLE player_info_by_uuid ( > player_uuid uuid, > player_full_name text, > team_name text, > weight double, > height double, > position text, > PRIMARY KEY (player_uuid) > ) > columnspec: > - name: player_uuid > size: fixed(32) # no. of chars of UUID > population: seq(1..1696) # 53 active players per team, 32 teams = 1696 > players > insert: > partitions: fixed(1) # 1 partition per batch > batchtype: UNLOGGED # use unlogged batches > select: fixed(1)/1 # no chance of skipping a row when generating inserts > {code} > The following debug output showed that we were over-incrementing the seed > {code} > SeedManager.next.index: 341824 > SeriesGenerator.Seed.next: 0 > SeriesGenerator.Seed.start: 1 > SeriesGenerator.Seed.totalCount: 20 > SeriesGenerator.Seed.next % totalCount: 0 > SeriesGenerator.Seed.start + (next % totalCount): 1 > PartitionOperation.ready.seed: org.apache.cassandra.stress.generate.Seed@1 > DistributionSequence.nextWithWrap.next: 0 > DistributionSequence.nextWithWrap.start: 1 > DistributionSequence.nextWithWrap.totalCount: 20 > DistributionSequence.nextWithWrap.next % totalCount: 0 > DistributionSequence.nextWithWrap.start + (next % totalCount): 1 > DistributionSequence.nextWithWrap.next: 1 > DistributionSequence.nextWithWrap.start: 1 > DistributionSequence.nextWithWrap.totalCount: 20 > DistributionSequence.nextWithWrap.next % totalCount: 1 > DistributionSequence.nextWithWrap.start + (next % totalCount): 2 > Generated uuid: --0001--0002 > {code} > This patch fixes this issue by calling {{identityDistribution.next()}} once > [instead of > twice|https://github.com/apache/cassandra/blob/trunk/tools/stress/src/org/apache/cassandra/stress/generate/values/UUIDs.java/#L37] > when generating UUID's -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (CASSANDRA-12729) Cassandra-Stress: Use single seed in UUID generation
Chris Splinter created CASSANDRA-12729: -- Summary: Cassandra-Stress: Use single seed in UUID generation Key: CASSANDRA-12729 URL: https://issues.apache.org/jira/browse/CASSANDRA-12729 Project: Cassandra Issue Type: Bug Components: Tools Reporter: Chris Splinter Priority: Minor While testing the [new sequence distribution|https://issues.apache.org/jira/browse/CASSANDRA-12490] for the user module of cassandra-stress I noticed that half of the expected rows (848 / 1696) were produced when using a single uuid primary key. {code} table: player_info_by_uuid table_definition: | CREATE TABLE player_info_by_uuid ( player_uuid uuid, player_full_name text, team_name text, weight double, height double, position text, PRIMARY KEY (player_uuid) ) columnspec: - name: player_uuid size: fixed(32) # no. of chars of UUID population: seq(1..1696) # 53 active players per team, 32 teams = 1696 players insert: partitions: fixed(1) # 1 partition per batch batchtype: UNLOGGED # use unlogged batches select: fixed(1)/1 # no chance of skipping a row when generating inserts {code} The following debug output showed that we were over-incrementing the seed {code} SeedManager.next.index: 341824 SeriesGenerator.Seed.next: 0 SeriesGenerator.Seed.start: 1 SeriesGenerator.Seed.totalCount: 20 SeriesGenerator.Seed.next % totalCount: 0 SeriesGenerator.Seed.start + (next % totalCount): 1 PartitionOperation.ready.seed: org.apache.cassandra.stress.generate.Seed@1 DistributionSequence.nextWithWrap.next: 0 DistributionSequence.nextWithWrap.start: 1 DistributionSequence.nextWithWrap.totalCount: 20 DistributionSequence.nextWithWrap.next % totalCount: 0 DistributionSequence.nextWithWrap.start + (next % totalCount): 1 DistributionSequence.nextWithWrap.next: 1 DistributionSequence.nextWithWrap.start: 1 DistributionSequence.nextWithWrap.totalCount: 20 DistributionSequence.nextWithWrap.next % totalCount: 1 DistributionSequence.nextWithWrap.start + (next % totalCount): 2 Generated uuid: --0001--0002 {code} This patch fixes this issue by calling {{identityDistribution.next()}} once [instead of twice|https://github.com/apache/cassandra/blob/trunk/tools/stress/src/org/apache/cassandra/stress/generate/values/UUIDs.java/#L37] when generating UUID's -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (CASSANDRA-11032) Full trace returned on ReadFailure
Chris Splinter created CASSANDRA-11032: -- Summary: Full trace returned on ReadFailure Key: CASSANDRA-11032 URL: https://issues.apache.org/jira/browse/CASSANDRA-11032 Project: Cassandra Issue Type: Bug Components: Tools Reporter: Chris Splinter Priority: Minor I noticed that the full traceback is returned on a read failure where I expected this to be a one line exception with the ReadFailure message. It is minor, but would it be better to only return the ReadFailure details? {code} cqlsh> SELECT * FROM test_encryption_ks.test_bad_table; Traceback (most recent call last): File "/usr/local/lib/dse/bin/../resources/cassandra/bin/cqlsh.py", line 1276, in perform_simple_statement result = future.result() File "/usr/local/lib/dse/resources/cassandra/bin/../lib/cassandra-driver-internal-only-3.0.0-6af642d.zip/cassandra-driver-3.0.0-6af642d/cassandra/cluster.py", line 3122, in result raise self._final_exception ReadFailure: code=1300 [Replica(s) failed to execute read] message="Operation failed - received 0 responses and 1 failures" info={'failures': 1, 'received_responses': 0, 'required_responses': 1, 'consistency': 'ONE'} {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)