Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B9885200CF5 for ; Sun, 27 Aug 2017 18:35:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B82C9164233; Sun, 27 Aug 2017 16:35:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1429B16422C for ; Sun, 27 Aug 2017 18:35:09 +0200 (CEST) Received: (qmail 18984 invoked by uid 500); 27 Aug 2017 16:35:07 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 18973 invoked by uid 99); 27 Aug 2017 16:35:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Aug 2017 16:35:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 27703C8F17 for ; Sun, 27 Aug 2017 16:35:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id UCqt3Lpdfa_H for ; Sun, 27 Aug 2017 16:35:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 7DBAB60D2C for ; Sun, 27 Aug 2017 16:35:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 438BCE0931 for ; Sun, 27 Aug 2017 16:35:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 9AD4025381 for ; Sun, 27 Aug 2017 16:35:01 +0000 (UTC) Date: Sun, 27 Aug 2017 16:35:01 +0000 (UTC) From: "Varun Barala (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-13600) sstabledump possible problem MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 27 Aug 2017 16:35:10 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16143156#comment-16143156 ] Varun Barala commented on CASSANDRA-13600: ------------------------------------------ [~jjirsa] okay, I'll write unit test case for this. Shall I raise GitHub pull request or patch, which one will be more convenient? Thanks! > sstabledump possible problem > ---------------------------- > > Key: CASSANDRA-13600 > URL: https://issues.apache.org/jira/browse/CASSANDRA-13600 > Project: Cassandra > Issue Type: Bug > Environment: Official cassandra docker image (last) under Win10 > Reporter: a8775 > Assignee: Varun Barala > Labels: patch > Fix For: 3.10 > > Attachments: CASSANDRA-13600.patch > > > h2. Possible bug in sstabledump > {noformat} > cqlsh> show version > [cqlsh 5.0.1 | Cassandra 3.10 | CQL spec 3.4.4 | Native protocol v4] > {noformat} > h2. Execute script in cqlsh in new keyspace > {noformat} > CREATE TABLE IF NOT EXISTS test_data ( > // partitioning key > PK TEXT, > // data > Data TEXT, > > PRIMARY KEY (PK) > ); > insert into test_data(PK,Data) values('0','aaaa'); > insert into test_data(PK,Data) values('1','bbbb'); > insert into test_data(PK,Data) values('2','cccc'); > delete from test_data where PK='1'; > insert into test_data(PK,Data) values('1','dddd'); > {noformat} > h2. Execute the following commands > {noformat} > nodetool flush > nodetool compact > sstabledump mc-2-big-Data.db > sstabledump -d mc-2-big-Data.db > {noformat} > h3. default dump - missing data for partiotion key = "1" > {noformat} > [ > { > "partition" : { > "key" : [ "0" ], > "position" : 0 > }, > "rows" : [ > { > "type" : "row", > "position" : 15, > "liveness_info" : { "tstamp" : "2017-06-14T12:23:13.529389Z" }, > "cells" : [ > { "name" : "data", "value" : "aaaa" } > ] > } > ] > }, > { > "partition" : { > "key" : [ "2" ], > "position" : 26 > }, > "rows" : [ > { > "type" : "row", > "position" : 41, > "liveness_info" : { "tstamp" : "2017-06-14T12:23:13.544132Z" }, > "cells" : [ > { "name" : "data", "value" : "cccc" } > ] > } > ] > }, > { > "partition" : { > "key" : [ "1" ], > "position" : 53, > "deletion_info" : { "marked_deleted" : "2017-06-14T12:23:13.545988Z", "local_delete_time" : "2017-06-14T12:23:13Z" } > } > } > ] > {noformat} > h3. dump with -d option - correct data for partiotion key = "1" > {noformat} > [0]@0 Row[info=[ts=1497442993529389] ]: | [data=aaaa ts=1497442993529389] > [2]@26 Row[info=[ts=1497442993544132] ]: | [data=cccc ts=1497442993544132] > [1]@53 deletedAt=1497442993545988, localDeletion=1497442993 > [1]@53 Row[info=[ts=1497442993550159] ]: | [data=dddd ts=1497442993550159] > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org