[ https://issues.apache.org/jira/browse/CASSANDRA-14721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17004854#comment-17004854 ]
Michael Semb Wever commented on CASSANDRA-14721: ------------------------------------------------ ||branch||circleci||asf jenkins testall||asf jenkins dtests|| |[cassandra-3.0_14721|https://github.com/apache/cassandra/compare/cassandra-3.0...thelastpickle:mck/cassandra-3.0_14721]|[circleci|https://circleci.com/gh/thelastpickle/workflows/cassandra/tree/mck%2Fcassandra-3.0_14721]|[!https://builds.apache.org/view/A-D/view/Cassandra/job/Cassandra-devbranch-testall/36/badge/icon!|https://builds.apache.org/view/A-D/view/Cassandra/job/Cassandra-devbranch-testall/36/]|[!https://builds.apache.org/view/A-D/view/Cassandra/job/Cassandra-devbranch-dtest/709/badge/icon!|https://builds.apache.org/view/A-D/view/Cassandra/job/Cassandra-devbranch-dtest/709]| |[cassandra-3.11_14721|https://github.com/apache/cassandra/compare/cassandra-3.11...thelastpickle:mck/cassandra-3.11_14721]|[circleci|https://circleci.com/gh/thelastpickle/workflows/cassandra/tree/mck%2Fcassandra-3.11_14721]|[!https://builds.apache.org/view/A-D/view/Cassandra/job/Cassandra-devbranch-testall/37/badge/icon!|https://builds.apache.org/view/A-D/view/Cassandra/job/Cassandra-devbranch-testall/37/]|[!https://builds.apache.org/view/A-D/view/Cassandra/job/Cassandra-devbranch-dtest/710/badge/icon!|https://builds.apache.org/view/A-D/view/Cassandra/job/Cassandra-devbranch-dtest/710]| |[trunk_14721|https://github.com/apache/cassandra/compare/trunk...thelastpickle:mck/trunk_14721]|[circleci|https://circleci.com/gh/thelastpickle/workflows/cassandra/tree/mck%2Ftrunk_14721]|[!https://builds.apache.org/view/A-D/view/Cassandra/job/Cassandra-devbranch-testall/38/badge/icon!|https://builds.apache.org/view/A-D/view/Cassandra/job/Cassandra-devbranch-testall/38/]|[!https://builds.apache.org/view/A-D/view/Cassandra/job/Cassandra-devbranch-dtest/711/badge/icon!|https://builds.apache.org/view/A-D/view/Cassandra/job/Cassandra-devbranch-dtest/711]| > sstabledump displays incorrect value for "position" key > ------------------------------------------------------- > > Key: CASSANDRA-14721 > URL: https://issues.apache.org/jira/browse/CASSANDRA-14721 > Project: Cassandra > Issue Type: Bug > Components: Legacy/Tools > Reporter: Damien Stevenson > Assignee: Cameron Zemek > Priority: Low > Fix For: 3.0.x, 3.11.x, 4.x > > Attachments: cassandra-dump.patch > > > When partitions with multiple rows are displayed using sstabledump, the > "position" value the first row of each partition is incorrect. > For example: > {code:java} > sstabledump mc-1-big-Data.db > [ > { > "partition" : { > "key" : [ "1", "24" ], > "position" : 0 > }, > "rows" : [ > { > "type" : "row", > "position" : 66, > "clustering" : [ "2013-12-10 00:00:00.000Z" ], > "liveness_info" : { "tstamp" : "2018-09-12T05:01:09.290086Z" }, > "cells" : [ > { "name" : "centigrade", "value" : 8 }, > { "name" : "chanceofrain", "value" : 0.1 }, > { "name" : "feelslike", "value" : 8 }, > { "name" : "humidity", "value" : 0.76 }, > { "name" : "wind", "value" : 10.0 } > ] > }, > { > "type" : "row", > "position" : 66, > "clustering" : [ "2013-12-11 00:00:00.000Z" ], > "liveness_info" : { "tstamp" : "2018-09-12T05:01:09.295369Z" }, > "cells" : [ > { "name" : "centigrade", "value" : 4 }, > { "name" : "chanceofrain", "value" : 0.3 }, > { "name" : "feelslike", "value" : 4 }, > { "name" : "humidity", "value" : 0.9 }, > { "name" : "wind", "value" : 12.0 } > ] > }, > { > "type" : "row", > "position" : 105, > "clustering" : [ "2013-12-12 00:00:00.000Z" ], > "liveness_info" : { "tstamp" : "2018-09-12T05:01:09.300841Z" }, > "cells" : [ > { "name" : "centigrade", "value" : 3 }, > { "name" : "chanceofrain", "value" : 0.2 }, > { "name" : "feelslike", "value" : 3 }, > { "name" : "humidity", "value" : 0.68 }, > { "name" : "wind", "value" : 6.0 } > ] > } > ] > } > ] > {code} > The expected output is: > {code:java} > [ > { > "partition" : { > "key" : [ "1", "24" ], > "position" : 0 > }, > "rows" : [ > { > "type" : "row", > "position" : 28, > "clustering" : [ "2013-12-10 00:00:00.000Z" ], > "liveness_info" : { "tstamp" : "2018-09-12T05:01:09.290086Z" }, > "cells" : [ > { "name" : "centigrade", "value" : 8 }, > { "name" : "chanceofrain", "value" : 0.1 }, > { "name" : "feelslike", "value" : 8 }, > { "name" : "humidity", "value" : 0.76 }, > { "name" : "wind", "value" : 10.0 } > ] > }, > { > "type" : "row", > "position" : 66, > "clustering" : [ "2013-12-11 00:00:00.000Z" ], > "liveness_info" : { "tstamp" : "2018-09-12T05:01:09.295369Z" }, > "cells" : [ > { "name" : "centigrade", "value" : 4 }, > { "name" : "chanceofrain", "value" : 0.3 }, > { "name" : "feelslike", "value" : 4 }, > { "name" : "humidity", "value" : 0.9 }, > { "name" : "wind", "value" : 12.0 } > ] > }, > { > "type" : "row", > "position" : 105, > "clustering" : [ "2013-12-12 00:00:00.000Z" ], > "liveness_info" : { "tstamp" : "2018-09-12T05:01:09.300841Z" }, > "cells" : [ > { "name" : "centigrade", "value" : 3 }, > { "name" : "chanceofrain", "value" : 0.2 }, > { "name" : "feelslike", "value" : 3 }, > { "name" : "humidity", "value" : 0.68 }, > { "name" : "wind", "value" : 6.0 } > ] > } > ] > } > ] > {code} -- 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