Return-Path: X-Original-To: apmail-storm-user-archive@minotaur.apache.org Delivered-To: apmail-storm-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 87891186C4 for ; Wed, 17 Feb 2016 18:38:41 +0000 (UTC) Received: (qmail 60422 invoked by uid 500); 17 Feb 2016 18:38:34 -0000 Delivered-To: apmail-storm-user-archive@storm.apache.org Received: (qmail 60378 invoked by uid 500); 17 Feb 2016 18:38:34 -0000 Mailing-List: contact user-help@storm.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@storm.apache.org Delivered-To: mailing list user@storm.apache.org Received: (qmail 60368 invoked by uid 99); 17 Feb 2016 18:38:34 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2016 18:38:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D4AAAC0D80 for ; Wed, 17 Feb 2016 18:38:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.179 X-Spam-Level: ** X-Spam-Status: No, score=2.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_LIVE=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id pHLM4fnXd_4o for ; Wed, 17 Feb 2016 18:38:32 +0000 (UTC) Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id D6644665BC for ; Wed, 17 Feb 2016 15:00:10 +0000 (UTC) Received: by mail-ob0-f173.google.com with SMTP id jq7so17529734obb.0 for ; Wed, 17 Feb 2016 07:00:10 -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=luQ+llQ/3hum/9JeU9ixB72tBlPMwUsENVUnhvNGiNc=; b=lU2azYVR1zuiU97xWRbYM7jwFiXzX2rI36VIQ98BYGOfdAevgbFAIQpCniOWOLPveu r9BUYLHuyCfbhZsFccQYe8YQwyd7eiWb1jSjFqtQiDNP+EdN5gBz3moN3UYLY8NZa2wI /0sV8y1Te24i2TsPLx9xGryx7nk8DxyB8jOpd57IRQp656LD9XguRcyEY9gj4/7IBukA 5CBx9EYf67xVaKEG9C/7zP6n2koH/0sHWipYmG6g6PeL81vD6yddGRh/HBuH0dvbOcqR ZL/3kJibDcaaRaSxQGqrq/RyXOl8lfFIdA7Ho4xanRs9ZFfasDFCJGd48xQgKH+gVswS 6qbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=luQ+llQ/3hum/9JeU9ixB72tBlPMwUsENVUnhvNGiNc=; b=Ls2CDigD6ny/Oe6yp+tpYZjVKCE6+/nRvExr2VzGZxCjU7ia571DbYJLqHqUMmxf8+ cwT3Iqxzt1GYMH9kPbMD40w+wnKeGG7jW4QjHZnAYa2ZeO7cJim/ALMSPkINnqMHeOB9 hKciWwHGWl+MT/1P8gGiDhkdA9U/w8XOzZaH65GXNfBDtGTigBNu8YknbVOffDDaeqHo Wg/5/e5ZYo99fBLhFHhc0rCWtqUTsBBvaoUQrOnhR5KWlNSzvzTJ1ewIwn0mMttAWPL6 OT313jRa5Cz8Dff7H8fSqKPmxWpv5uvvDDdbQxxuWEC+Fb6gii6vpfHh4qOpnLlSYd4r LFQw== X-Gm-Message-State: AG10YOSlpKM3HIVvLFOJQpDnwBRt6v0dqbrfTwuCh+s0P6s4gp266Y9sc1YXIKTMPk4tqwl2GLrDudlM+xR2yw== MIME-Version: 1.0 X-Received: by 10.202.181.11 with SMTP id e11mr1512882oif.77.1455721203748; Wed, 17 Feb 2016 07:00:03 -0800 (PST) Received: by 10.76.41.162 with HTTP; Wed, 17 Feb 2016 07:00:03 -0800 (PST) In-Reply-To: References: Date: Wed, 17 Feb 2016 15:00:03 +0000 Message-ID: Subject: Re: Is SpoutOutputCollector thread-safe? From: Julien Nioche To: user@storm.apache.org Content-Type: multipart/alternative; boundary=001a113cfef83dd895052bf88185 --001a113cfef83dd895052bf88185 Content-Type: text/plain; charset=UTF-8 Is that true of all OutputCollectors or just SpoutOutputCollector? Is http://storm.apache.org/documentation/Troubleshooting.html#nullpointerexception-from-deep-inside-storm still an issue with 0.10.0 and above? Couldn't find any reference to this in http://storm.apache.org/2015/11/05/storm0100-released.html Thanks Julien On 16 February 2016 at 17:59, Abhishek Agarwal wrote: > It is not thread safe in 0.9.4. It is thread safe in later versions > (0.10.0 onwards) > > Excuse typos > On Feb 16, 2016 11:01 PM, "Evgeniy Khyst" wrote: > >> Hello! >> >> I'm currently using Apache Storm 0.9.4 and have question about >> thread-safety of *SpoutOutputCollector*. Is it safe to call *emit *method >> from different threads? >> In documentation (http://storm.apache.org/documentation/Concepts.html) >> it is said that *OutputCollector *is not thread-safe, and all emits, >> acks, and fails must happen on the same thread. >> But in Javadoc ( >> https://storm.apache.org/apidocs/backtype/storm/spout/ISpout.html) it is >> said that *SpoutOutputCollector* is thread-safe and should be saved as >> an instance variable of this spout object. >> Please, provide a little bit more details about thread-safety of >> *SpoutOutputCollector* and validity of calling *emit *method from >> different threads. >> >> Thanks. >> >> Best regards, >> Evgeniy >> > -- *Open Source Solutions for Text Engineering* http://www.digitalpebble.com http://digitalpebble.blogspot.com/ #digitalpebble --001a113cfef83dd895052bf88185 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Is that true of all OutputCollectors or just SpoutOutputCo= llector? Is=C2=A0http://storm.apache.org/documentation/Troubleshooting.html#nul= lpointerexception-from-deep-inside-storm=C2=A0still an issue with 0.10.= 0 and above?

Couldn't find any reference to this in= =C2=A0http://storm.apache.org/2015/11/05/storm0100-released.html
=
Thanks

Julien


On 16 February 2016 at 17:59, Abhishek Agarwal <abhishcool@gmail.com= > wrote:

It = is not thread safe in 0.9.4.=C2=A0 It is thread safe in later versions (0.1= 0.0 onwards)

Excuse typos

On Feb 16, 2016 11:01 PM, "Evgeniy Khyst&qu= ot; <evgeni= y.khist@gmail.com> wrote:
Hello!

I'm currently using Apache= Storm 0.9.4 and have question about thread-safety of=C2=A0SpoutOutputCo= llector. Is it safe to call=C2=A0emit=C2=A0method from different= threads?
In documentation (http://storm.apache.org/documentation= /Concepts.html) it is said that=C2=A0OutputCollector=C2=A0is not= thread-safe, and all emits, acks, and fails must happen on the same thread= .
But in Javadoc (https://storm.apache.org/apidocs/= backtype/storm/spout/ISpout.html) it is said that=C2=A0SpoutOutputCo= llector=C2=A0is thread-safe and should be saved as an instance variable= of this spout object.
Please, provide a little bit more details ab= out thread-safety of=C2=A0SpoutOutputCollector=C2=A0and validity of = calling=C2=A0emit=C2=A0method from different threads.

=
Thanks.

Best regards,
Evgeniy=



--
=
--001a113cfef83dd895052bf88185--