Return-Path: X-Original-To: apmail-kafka-users-archive@www.apache.org Delivered-To: apmail-kafka-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A3610EA59 for ; Tue, 22 Jan 2013 05:17:36 +0000 (UTC) Received: (qmail 39626 invoked by uid 500); 22 Jan 2013 05:17:36 -0000 Delivered-To: apmail-kafka-users-archive@kafka.apache.org Received: (qmail 39495 invoked by uid 500); 22 Jan 2013 05:17:36 -0000 Mailing-List: contact users-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@kafka.apache.org Delivered-To: mailing list users@kafka.apache.org Received: (qmail 39476 invoked by uid 99); 22 Jan 2013 05:17:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jan 2013 05:17:35 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of junrao@gmail.com designates 209.85.223.175 as permitted sender) Received: from [209.85.223.175] (HELO mail-ie0-f175.google.com) (209.85.223.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jan 2013 05:17:27 +0000 Received: by mail-ie0-f175.google.com with SMTP id qd14so11138162ieb.34 for ; Mon, 21 Jan 2013 21:17:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=VY0aAvL5lrH1xsShV8mZ67nTXciuO1OozPNHMLDf1HI=; b=CHPCAqfXrTWDYudiHihX3QkJyM2oA0HwZ63Tw5WZa84GwvO4m34KmWTR55P88JytqE 5XkFNzq0G7nwpslPDDbxrIH/wGgRU8RVofIoFZWWVNzgYZzD9jP+7OQ3j8oefgOuoWbe +U7aFnycMaGsmE5ghwB6JNPTeDDSfJEsCBnHmoarmYlOHuE0jCbES4FXW01ry7Zc/OFd qGdSBjGgY8gPjlqy2sTiCVzPfCbED4rqzhrzdb79DoJNXRTyfI8g3sE+9qPALDkmF5yZ T4k/4aVHTaiFmf+8L9U+yiPY2chQVJcwDrqfTny5zHItqccExVaL8+vinZAUwazf/I7M oK0g== MIME-Version: 1.0 X-Received: by 10.50.40.133 with SMTP id x5mr10530314igk.32.1358831826535; Mon, 21 Jan 2013 21:17:06 -0800 (PST) Received: by 10.42.158.130 with HTTP; Mon, 21 Jan 2013 21:17:06 -0800 (PST) In-Reply-To: References: Date: Mon, 21 Jan 2013 21:17:06 -0800 Message-ID: Subject: Re: no exceptions when producer send messages to a opened port that is not a broker From: Jun Rao To: users@kafka.apache.org Content-Type: multipart/alternative; boundary=14dae93403d954848404d3d9b051 X-Virus-Checked: Checked by ClamAV on apache.org --14dae93403d954848404d3d9b051 Content-Type: text/plain; charset=ISO-8859-1 This is true in 0.7 since the producer doesn't receive any ack. So, unless the other side closes the socket on a wrong request, the producer client won't know that sth is wrong on the server. In 0.8, the producer will wait for an ack from the broker and will timeout if no response is received. Thanks, Jun On Mon, Jan 21, 2013 at 6:56 PM, Helin Xiang wrote: > Hi, > > I am doing some tests about kafka, and I found this: > > I was going to use the zookeeper to find broker, but somehow I set the > producer's property containing "port=xxx", it actually connect to a > 'broker' on "localhost:xxx"; but the port is used for another service (a > thrift server, not a kafka broker), > > so the real thing is *a producer send messages to a opened port that is not > a broker, and it didn't throw any exception*(I think catched all the > exceptions). > > I wonder why it didnot throw any exception. could someone explain it OR how > can I catch those exceptions? > > thanks > > > > -- > *Best Regards > > Helin Xiang* > --14dae93403d954848404d3d9b051--