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 A3F82200D34 for ; Fri, 3 Nov 2017 22:27:56 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A271D160BFC; Fri, 3 Nov 2017 21:27:56 +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 E02D4160BDE for ; Fri, 3 Nov 2017 22:27:55 +0100 (CET) Received: (qmail 18001 invoked by uid 500); 3 Nov 2017 21:27:55 -0000 Mailing-List: contact commits-help@pulsar.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pulsar.incubator.apache.org Delivered-To: mailing list commits@pulsar.incubator.apache.org Received: (qmail 17986 invoked by uid 99); 3 Nov 2017 21:27:55 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Nov 2017 21:27:55 +0000 From: GitBox To: commits@pulsar.apache.org Subject: [GitHub] merlimat commented on a change in pull request #883: Do not used Pooled allocator for stats buffers Message-ID: <150974447454.18640.2849840764684836183.gitbox@gitbox.apache.org> archived-at: Fri, 03 Nov 2017 21:27:56 -0000 merlimat commented on a change in pull request #883: Do not used Pooled allocator for stats buffers URL: https://github.com/apache/incubator-pulsar/pull/883#discussion_r148897112 ########## File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/service/PulsarStats.java ########## @@ -60,8 +60,8 @@ private final ReentrantReadWriteLock bufferLock = new ReentrantReadWriteLock(); public PulsarStats(PulsarService pulsar) { - this.topicStatsBuf = PooledByteBufAllocator.DEFAULT.heapBuffer(16 * 1024); - this.tempTopicStatsBuf = PooledByteBufAllocator.DEFAULT.heapBuffer(16 * 1024); + this.topicStatsBuf = Unpooled.buffer(16 * 1024); Review comment: I think we need the byte[] to write the result into an OutputStrean ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services