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 A8DEC18AC9 for ; Thu, 11 Feb 2016 17:02:18 +0000 (UTC) Received: (qmail 81416 invoked by uid 500); 11 Feb 2016 17:02:18 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 81361 invoked by uid 500); 11 Feb 2016 17:02:18 -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 81146 invoked by uid 99); 11 Feb 2016 17:02:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Feb 2016 17:02:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 361602C0AFA for ; Thu, 11 Feb 2016 17:02:18 +0000 (UTC) Date: Thu, 11 Feb 2016 17:02:18 +0000 (UTC) From: "Vara (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-10445) Cassandra-stress throws max frame size error when SSL certification is enabled 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-10445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15143048#comment-15143048 ] Vara commented on CASSANDRA-10445: ---------------------------------- Is there any feedback or workaround on this issue. Cassandra stress tool works fine without SSL but when we configured SSL in our cluster then i wasn't able to execute the stress tool. /usr/bin/cassandra-stress write n=100000 -rate threads\>=5 threads\<=9 -mode thrift user='xxx' password='"xxx' -log file=~/vara_write_100kfile.log please see the error below ------------------------------ Exception in thread "main" java.lang.RuntimeException: org.apache.thrift.transport.TTransportException: Frame size (352518912) larger than max length (15728640)! at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:144) at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:110) at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesThrift(SettingsSchema.java:111) at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:59) at org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:205) at org.apache.cassandra.stress.StressAction.run(StressAction.java:55) at org.apache.cassandra.stress.Stress.main(Stress.java:109) Caused by: org.apache.thrift.transport.TTransportException: Frame size (352518912) larger than max length (15728640)! at org.apache.thrift.transport.TFramedTransport.readFrame(TFramedTransport.java:137) at org.apache.thrift.transport.TFramedTransport.read(TFramedTransport.java:101) at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86) at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:429) at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:318) at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:219) at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:77) at org.apache.cassandra.thrift.Cassandra$Client.recv_login(Cassandra.java:582) at org.apache.cassandra.thrift.Cassandra$Client.login(Cassandra.java:569) at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:135) ... 6 more > Cassandra-stress throws max frame size error when SSL certification is enabled > ------------------------------------------------------------------------------ > > Key: CASSANDRA-10445 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10445 > Project: Cassandra > Issue Type: Bug > Reporter: Sam Goldberg > Labels: stress > Fix For: 2.1.x > > > Running cassandra-stress when SSL is enabled gives the following error and does not finish executing: > {quote} > cassandra-stress write n=1000000 > Exception in thread "main" java.lang.RuntimeException: org.apache.thrift.transport.TTransportException: Frame size (352518912) larger than max length (15728640)! > at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:144) > at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:110) > at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesThrift(SettingsSchema.java:111) > at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:59) > at org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:205) > at org.apache.cassandra.stress.StressAction.run(StressAction.java:55) > at org.apache.cassandra.stress.Stress.main(Stress.java:109) > {quote} > I was able to reproduce this issue consistently via the following steps: > 1) Spin up 3 node cassandra cluster running 2.1.8 > 2) Perform cassandra-stress write n=1000000 > 3) Everything works! > 4) Generate keystore and truststore for each node in the cluster and distribute appropriately > 5) Modify cassandra.yaml on each node to enable SSL: > client_encryption_options: > enabled: true > keystore: / > # require_client_auth: false > # Set trustore and truststore_password if require_client_auth is true > truststore: / > truststore_password: > # More advanced defaults below: > protocol: ssl > 6) Restart each node. > 7) Perform cassandra-stress write n=1000000 > 8) Get Frame Size error, cassandra-stress fails > This may be related to CASSANDRA-9325. -- This message was sent by Atlassian JIRA (v6.3.4#6332)