Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-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 54F1110242 for ; Wed, 8 Jan 2014 20:42:09 +0000 (UTC) Received: (qmail 51275 invoked by uid 500); 8 Jan 2014 20:42:09 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 51245 invoked by uid 500); 8 Jan 2014 20:42:09 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 51237 invoked by uid 99); 8 Jan 2014 20:42:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jan 2014 20:42:09 +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 rob.j.godfrey@gmail.com designates 209.85.216.182 as permitted sender) Received: from [209.85.216.182] (HELO mail-qc0-f182.google.com) (209.85.216.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jan 2014 20:42:03 +0000 Received: by mail-qc0-f182.google.com with SMTP id c9so378683qcz.41 for ; Wed, 08 Jan 2014 12:41:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=gzSOXa38X5wOaNZvFC9XCmyu5cPceovhAWB/XPqFuw0=; b=VwvHdpo+SvQC6YYbvBh9GSw7vKLiILv7UGQ1rFIHvS7dC25nBTBWMcmmtebwIEyxeH YfuSEchM+EcknMUFcfdBIRTq2KGHhxOBdoTaDvfa/liPXkhyLZecAwpDtDNypHmwGFVP /fUGX3Jquia7IWCaFtwnQ/nhjvNlxkhiOXk0VbN0zUs8DDxKBpLuomyTYOlDrgJG3Nd7 nRLwGhRQig4OZN3NFBCByjJ9XuQOBzWW5mil8hleEQY5YGuiUQKmPJj8eB6YMNLCdBuo hYwvCZ6OkDdbBcjBdx0JaZyPSuR6VMlElg3gWQmqEoX64yiQwyh9Y6Z24ng1jbIgMTSD IRog== MIME-Version: 1.0 X-Received: by 10.229.7.133 with SMTP id d5mr204027590qcd.10.1389213701864; Wed, 08 Jan 2014 12:41:41 -0800 (PST) Received: by 10.140.85.5 with HTTP; Wed, 8 Jan 2014 12:41:41 -0800 (PST) In-Reply-To: <52CDB4B1.3000706@blueyonder.co.uk> References: <1389206288382-7602408.post@n2.nabble.com> <52CDB4B1.3000706@blueyonder.co.uk> Date: Wed, 8 Jan 2014 21:41:41 +0100 Message-ID: Subject: Re: Serious Bug in AMQP 1.0 JMS Client with persistent messages From: Rob Godfrey To: "users@qpid.apache.org" Content-Type: multipart/alternative; boundary=001a1135ec94379d5304ef7b8500 X-Virus-Checked: Checked by ClamAV on apache.org --001a1135ec94379d5304ef7b8500 Content-Type: text/plain; charset=ISO-8859-1 On 8 January 2014 21:27, Fraser Adams wrote: > On 08/01/14 18:55, Rob Godfrey wrote: > >> Hi Uli, >> >> To enable synchronous publishing you need to either set the Java system >> property "qpid.sync_publish" to true, or have sync-publish=true as one of >> the URL options in your connection URL. >> >> I agree it should be the default, and we can look to change this in a >> future release. >> > > Hmm, I'd really rather you didn't do that. Async behaviour has been the > default behaviour with Qpid from year dot. so changing it is pretty likely > to bite someone nastily. > > I'd agree that async behaviour technically means that by default Qpid > breaches JMS guarantees, but TBH I think it's a little late in the day now > to be going switching the default. It's also make the default behaviour > inconsistent with qpid::messaging which doesn't seem ideal. > > Given this is a totally separate client, (and is vastly different in many other ways - like different connection URLs, different address formats, etc.) and it's probably being used more widely against non-qpid brokers/services than it is against Qpid right now, then I'm not sure I'm too worried about refleting the behaviour of the AMQP 0-8/9/9-1/10 client. I think the bigger issue in switching the default right now is that it would seem that it would break anyone trying to use it with ActiveMQ. > As we've discussed before not everyone has guaranteed delivery right up > there at the top end of things they give a damn about, in my case it's all > about performance and I can take the hit if I lose the odd message - plenty > more where they came from :-) I probably wouldn't be wildly amused to > upgrade to Qpid version "x" only to find a massive performance regression > that might force me to get a non-trivial number of clients to change some > bit of config. or other. > > The "intelligent" change would be to only use syn publishing with persistent but non-transactional messaging. If you are using transient you clearly aren't looking for guaranteed delivery anyway. If you are using transation, you get your guarantee at the commit. This is the "expected" behaviour for JMS (though most implementations offer a switch to turn it off so people can get better performance... in which case you have to wonder why they are using persistent messaging in the first place).... Anyway given the issues with ActiveMQ - I won't be changing it for the moment anyways. -- Rob > Frase > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org > For additional commands, e-mail: users-help@qpid.apache.org > > --001a1135ec94379d5304ef7b8500--