Return-Path: X-Original-To: apmail-incubator-kafka-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-kafka-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C298098A4 for ; Fri, 30 Mar 2012 21:17:53 +0000 (UTC) Received: (qmail 54475 invoked by uid 500); 30 Mar 2012 21:17:53 -0000 Delivered-To: apmail-incubator-kafka-dev-archive@incubator.apache.org Received: (qmail 54450 invoked by uid 500); 30 Mar 2012 21:17:53 -0000 Mailing-List: contact kafka-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: kafka-dev@incubator.apache.org Delivered-To: mailing list kafka-dev@incubator.apache.org Received: (qmail 54442 invoked by uid 99); 30 Mar 2012 21:17:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Mar 2012 21:17:53 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jay.kreps@gmail.com designates 209.85.210.175 as permitted sender) Received: from [209.85.210.175] (HELO mail-iy0-f175.google.com) (209.85.210.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Mar 2012 21:17:47 +0000 Received: by iaag37 with SMTP id g37so1532145iaa.6 for ; Fri, 30 Mar 2012 14:17:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=tHhrvD5AAUgPtMyg5jnxKX45DaTBgdAFpyfB8p3wPg8=; b=hGixVDi90IPEhv7cRYbA10whCLz/CRbbSEW6rTreFj2KdJEFkJYkMyGnomhiK5RIc5 GK0rLSg2BrA/BXcS+prEtSdybRzw/s+ZqC4rXBpiSB3NgeqddnV9oQPfEt8+DVX7QX5w Lkni8lYLgpTD0DLOFkeaOmV9ZHSS21WSDvnzO9Wo/wz49GzyOxfAnCny0TKjM/qZiY0s dnO4T7ZCAQ4Jbfhh2kjb8Qb5Qd052Utfr0iLKmD3IMBBVgPa+BgB2ObwQW6am29UqA0q GRdzxoCaeOsC4z/mc89dmUTwJfgXWl1BOZ9dP/Gui1+dOdg3erF8SULjX2pM2X/lB7SR RF0w== MIME-Version: 1.0 Received: by 10.42.180.66 with SMTP id bt2mr2117093icb.56.1333142247032; Fri, 30 Mar 2012 14:17:27 -0700 (PDT) Received: by 10.231.105.1 with HTTP; Fri, 30 Mar 2012 14:17:27 -0700 (PDT) Date: Fri, 30 Mar 2012 14:17:27 -0700 Message-ID: Subject: error code in ByteBufferMessageSet From: Jay Kreps To: kafka-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org There are a number of methods on ByteBufferMessageSet: def getInitialOffset = initialOffset def getBuffer = buffer def getErrorCode = errorCode def getSerialized(): ByteBuffer = buffer We don't generally have getters in kafka, since it automatically adds them. Is there a reason for these? Also, there is no documentation on getSerialized() which does the same thing as getBuffer(). Also why does a message set have an initial offset? Isn't it the case that a messageset is independent of a particular offset to which it might be written? It isn't clear to me why a MessageSet would have an error code at all. It is a set of messages, that is what it is. Error codes are something that have to do with APIs...did we just stick that in for convenience? I have a feeling that some of this was stuck in due to not having a proper consumer response object in which to put the fields maybe. Now that we have that in 0.8 can we clean this up? I feel if we junk up these core classes we will soon have a real mess on our hands... -Jay