cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Jirsa (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-14721) sstabledump displays incorrect value for "position" key
Date Mon, 22 Oct 2018 20:23:00 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-14721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16659636#comment-16659636
] 

Jeff Jirsa commented on CASSANDRA-14721:
----------------------------------------

[~cam1982] / [~cnlwsu] - which versions are affected? Does the patch apply cleanly to all
of them?


> 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: Tools
>            Reporter: Damien Stevenson
>            Assignee: Cameron Zemek
>            Priority: Minor
>             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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message