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 868A9918C for ; Fri, 23 Sep 2011 18:53:51 +0000 (UTC) Received: (qmail 77134 invoked by uid 500); 23 Sep 2011 18:53:51 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 77104 invoked by uid 500); 23 Sep 2011 18:53:51 -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 77094 invoked by uid 99); 23 Sep 2011 18:53:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2011 18:53:51 +0000 X-ASF-Spam-Status: No, hits=-2000.5 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, 23 Sep 2011 18:53: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 BC363AE437 for ; Fri, 23 Sep 2011 18:53:27 +0000 (UTC) Date: Fri, 23 Sep 2011 18:53:27 +0000 (UTC) From: "Greg Hinkle (JIRA)" To: commits@cassandra.apache.org Message-ID: <2140065558.7663.1316804007767.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CASSANDRA-3254) MessagingService sends blank bytes 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 MessagingService sends blank bytes ---------------------------------- Key: CASSANDRA-3254 URL: https://issues.apache.org/jira/browse/CASSANDRA-3254 Project: Cassandra Issue Type: Bug Affects Versions: 0.8.6 Reporter: Greg Hinkle MessagingService is calling DataOutputBuffer.getData() instead of .asByteArray() in two places. This results in always sending the full buffer size of at least 128 bytes even if the message is smaller. For messages like gossip and single col mutations its around 40 to 80 bytes wasted per message. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira