Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9D5CF868C for ; Fri, 19 Aug 2011 01:26:51 +0000 (UTC) Received: (qmail 96072 invoked by uid 500); 19 Aug 2011 01:26:51 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 96025 invoked by uid 500); 19 Aug 2011 01:26:50 -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 96010 invoked by uid 99); 19 Aug 2011 01:26:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2011 01:26:50 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2011 01:26:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 47033C4403 for ; Fri, 19 Aug 2011 01:26:27 +0000 (UTC) Date: Fri, 19 Aug 2011 01:26:27 +0000 (UTC) From: "Pavel Yaskevich (JIRA)" To: commits@cassandra.apache.org Message-ID: <2023520181.51598.1313717187286.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1797972536.50767.1313704947572.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-3057) secondary index on a column that has a value of size > 64k will fail on flush MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-3057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13087450#comment-13087450 ] Pavel Yaskevich commented on CASSANDRA-3057: -------------------------------------------- Misunderstood what you meant... +1 > secondary index on a column that has a value of size > 64k will fail on flush > ----------------------------------------------------------------------------- > > Key: CASSANDRA-3057 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3057 > Project: Cassandra > Issue Type: Bug > Reporter: Jackson Chung > Assignee: Pavel Yaskevich > Priority: Minor > Fix For: 0.8.5 > > Attachments: 3057-v3.txt, CASSANDRA-3057-v2.patch, CASSANDRA-3057.patch > > > exception seen on flush when an indexed column contain size > 64k: > granted that having a value > 64k possibly mean something that shouldn't be indexed as it most likely would have a high cardinality, but i think there would still be some valid use case for it. > test case: > simply run the stress test with > -n 1 -u 0 -c 2 -y Standard -o INSERT -S 65536 -x KEYS > then call a flush > exception: > INFO [FlushWriter:8] 2011-08-18 21:49:33,214 Memtable.java (line 218) Writing Memtable-Standard1.Idx1@1652462853(16/20 serialized/live bytes, 1 ops) > Standard1@980087547(196659/245823 serialized/live bytes, 3 ops) > ERROR [FlushWriter:8] 2011-08-18 21:49:33,230 AbstractCassandraDaemon.java (line 133) Fatal exception in thread Thread[FlushWriter:8,5,RMI Runtime] > java.lang.AssertionError: 65536 > at org.apache.cassandra.utils.ByteBufferUtil.writeWithShortLength(ByteBufferUtil.java:330) > at org.apache.cassandra.io.sstable.SSTableWriter.append(SSTableWriter.java:164) > at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:245) > at org.apache.cassandra.db.Memtable.access$400(Memtable.java:49) > at org.apache.cassandra.db.Memtable$3.runMayThrow(Memtable.java:270) > at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:662) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira