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 5EDCC18566 for ; Tue, 10 Nov 2015 18:33:16 +0000 (UTC) Received: (qmail 75800 invoked by uid 500); 10 Nov 2015 18:33:11 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 75766 invoked by uid 500); 10 Nov 2015 18:33:11 -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 75752 invoked by uid 99); 10 Nov 2015 18:33:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2015 18:33:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EA1D92C1F57 for ; Tue, 10 Nov 2015 18:33:10 +0000 (UTC) Date: Tue, 10 Nov 2015 18:33:10 +0000 (UTC) From: "Brandon Williams (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-10684) cassandra-test not working with PRIMARY KEY containing 2 columns MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-10684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brandon Williams updated CASSANDRA-10684: ----------------------------------------- Component/s: (was: Testing) core > cassandra-test not working with PRIMARY KEY containing 2 columns > ---------------------------------------------------------------- > > Key: CASSANDRA-10684 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10684 > Project: Cassandra > Issue Type: Bug > Components: core > Reporter: Guillaume Labelle > Priority: Minor > Fix For: 2.1.x > > Attachments: request_trace_2.yaml > > > Running the following command with attached yaml file > ./cassandra-stress user profile=request_trace_2.yaml o\(likelyquery0=1,likelyquery1=2,insert=1\) -node 127.0.0.1 > Getting the following error: > Generating batches with [1..1] partitions and [0..0] rows (of [1..1] total rows in the partitions) > Exception in thread "main" java.lang.RuntimeException: InvalidRequestException(why:line 1:28 no viable alternative at input 'WHERE' (UPDATE "request_trace" SET [WHERE] service_context_id...)) > at org.apache.cassandra.stress.StressProfile.getInsert(StressProfile.java:382) > at org.apache.cassandra.stress.settings.SettingsCommandUser$1.get(SettingsCommandUser.java:82) > at org.apache.cassandra.stress.settings.SettingsCommandUser$1.get(SettingsCommandUser.java:78) > at org.apache.cassandra.stress.operations.SampledOpDistributionFactory$1.get(SampledOpDistributionFactory.java:78) > at org.apache.cassandra.stress.StressAction$Consumer.(StressAction.java:269) > at org.apache.cassandra.stress.StressAction.run(StressAction.java:204) > at org.apache.cassandra.stress.StressAction.warmup(StressAction.java:105) > at org.apache.cassandra.stress.StressAction.run(StressAction.java:61) > at org.apache.cassandra.stress.Stress.main(Stress.java:109) > Caused by: InvalidRequestException(why:line 1:28 no viable alternative at input 'WHERE' (UPDATE "request_trace" SET [WHERE] service_context_id...)) > at org.apache.cassandra.thrift.Cassandra$prepare_cql3_query_result$prepare_cql3_query_resultStandardScheme.read(Cassandra.java:52282) > at org.apache.cassandra.thrift.Cassandra$prepare_cql3_query_result$prepare_cql3_query_resultStandardScheme.read(Cassandra.java:52259) > at org.apache.cassandra.thrift.Cassandra$prepare_cql3_query_result.read(Cassandra.java:52198) > at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78) > at org.apache.cassandra.thrift.Cassandra$Client.recv_prepare_cql3_query(Cassandra.java:1797) > at org.apache.cassandra.thrift.Cassandra$Client.prepare_cql3_query(Cassandra.java:1783) > at org.apache.cassandra.stress.util.SimpleThriftClient.prepare_cql3_query(SimpleThriftClient.java:79) > at org.apache.cassandra.stress.StressProfile.getInsert(StressProfile.java:378) > ... 8 more > Please take note of the CREATE Table statement in the YAML file > CREATE TABLE request_trace (service_context_id text,trace_statement text, PRIMARY KEY (service_context_id, trace_statement)) > When adding an extra column, it works. -- This message was sent by Atlassian JIRA (v6.3.4#6332)