Return-Path: X-Original-To: apmail-helix-user-archive@minotaur.apache.org Delivered-To: apmail-helix-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 8634310C4F for ; Tue, 8 Oct 2013 05:32:12 +0000 (UTC) Received: (qmail 75124 invoked by uid 500); 8 Oct 2013 05:31:32 -0000 Delivered-To: apmail-helix-user-archive@helix.apache.org Received: (qmail 74994 invoked by uid 500); 8 Oct 2013 05:31:18 -0000 Mailing-List: contact user-help@helix.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@helix.incubator.apache.org Delivered-To: mailing list user@helix.incubator.apache.org Received: (qmail 74957 invoked by uid 99); 8 Oct 2013 05:31:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Oct 2013 05:31:12 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nehzgnahz@gmail.com designates 209.85.192.174 as permitted sender) Received: from [209.85.192.174] (HELO mail-pd0-f174.google.com) (209.85.192.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Oct 2013 05:31:05 +0000 Received: by mail-pd0-f174.google.com with SMTP id y13so8132399pdi.19 for ; Mon, 07 Oct 2013 22:30:44 -0700 (PDT) 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=Fsr6PTwJkz5F8vMnTKo32n2D/KEJZFwTw3VWIsxBL1s=; b=EY/vH1DJHrDTMvhRDqkf4gJCkQBCH8/r8VAC7Zggo6S32ORMGuqtr6HTfFdKjU9qyQ G7/w8tzQ5jLUvxQ3BBZr0rMDv593a6dLd2lxHnszY/StB4540lbnmLmFhdyjx0nNm8Wq Wg4A4TjsYRJpGbm1y4opl26z/K4jDG9BgwSxeLu5AKRi5P4sk+9B4wR1mIZb+/WswwVH 0jkrfc44J9sNo3ZL+/uo8gXZuNd35/5+0V/OVxx1Og0yiPvoYbvo2nGFj5QihmUrsluP QXdqqPKFHE8V8FfsqQQtgc1a6YUwcba4nSRRSbO3OBNIhvAwUX/H7QCTt3c3DYTaSu7i wEOA== MIME-Version: 1.0 X-Received: by 10.68.185.36 with SMTP id ez4mr7364037pbc.144.1381210244373; Mon, 07 Oct 2013 22:30:44 -0700 (PDT) Received: by 10.66.216.227 with HTTP; Mon, 7 Oct 2013 22:30:44 -0700 (PDT) In-Reply-To: <52538A51.8030407@gmail.com> References: <525366DD.7010005@gmail.com> <52538A51.8030407@gmail.com> Date: Mon, 7 Oct 2013 22:30:44 -0700 Message-ID: Subject: Re: Sending a message to all participants From: Zhen Zhang To: user@helix.incubator.apache.org Content-Type: multipart/alternative; boundary=047d7b874b40f9e37204e8341170 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b874b40f9e37204e8341170 Content-Type: text/plain; charset=ISO-8859-1 Hi, could you try allParticipantsCriteria.setSelfExcluded(false), by default selfExcluded is true and maybe you are sending from the only liveInstance in the cluster, so no liveInstance matches the criteria. Thanks, Jason On Mon, Oct 7, 2013 at 9:30 PM, Vinayak Borkar wrote: > Hi Kishore, > > > As suspected, not setting resource and partition did not help. Any other > ideas? > > Thanks, > > Vinayak > > > On 10/7/13 7:04 PM, kishore g wrote: > >> Hi Vinayak, >> >> Why is resource and partition empty string? if you want to send all live >> instances irrespective what resource/partition they do not set it. >> >> Criteria allParticipantsCriteria = new Criteria(); >> allParticipantsCriteria.****setInstanceName("%"); >> allParticipantsCriteria.****setRecipientInstanceType(****InstanceTyp >> e.PARTICIPANT); >> >> can you try this >> >> Thanks, >> Kishore G >> >> >> On Mon, Oct 7, 2013 at 6:58 PM, Vinayak Borkar >> wrote: >> >> Hi, >>> >>> >>> I need to send a message to all live instances in a Helix cluster. I set >>> the Criteria as follows: >>> >>> Criteria allParticipantsCriteria = new Criteria(); >>> allParticipantsCriteria.****setInstanceName("%"); >>> allParticipantsCriteria.****setRecipientInstanceType(** >>> InstanceType.PARTICIPANT); >>> allParticipantsCriteria.****setResource(""); >>> allParticipantsCriteria.****setPartition(""); >>> >>> >>> However, the number of recipients turns out to be 0. I also tried >>> changing >>> the datasource in the criteria to be IDEALSTATES using the code below: >>> >>> allParticipantsCriteria.****setDataSource(DataSource.****IDEALSTATES); >>> >>> >>> But no joy. >>> >>> Please note that I connect to Helix using an administrator role. When >>> listing the live instances using the helix-admin client script I do see >>> one >>> live instance. >>> >>> Any ideas on what could be going wrong? >>> >>> Thanks, >>> Vinayak >>> >>> >> > --047d7b874b40f9e37204e8341170 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi, could you try=A0allParticipantsCriteria.setSelfExcluded(false), by = default selfExcluded is true and maybe you are sending from the only liveIn= stance in the cluster, so no liveInstance matches the criteria.

Thanks,
<= font color=3D"#500050" face=3D"arial, sans-serif">Jason
<= div class=3D"gmail_extra">

On Mon, Oct 7, 2013 at 9:30 PM, Vinayak = Borkar <vinayakb@gmail.com> wrote:
Hi Kishore,


As suspected, not setting resource and partition did not help. Any other id= eas?

Thanks,

Vinayak


On 10/7/13 7:04 PM, kishore g wrote:
Hi Vinayak,

Why is resource and partition empty string? if you want to send all live instances irrespective what resource/partition they do not set it.

Criteria allParticipantsCriteria =3D new Criteria();
allParticipantsCriteria.**setInstanceName("%");
allParticipantsCriteria.**setRecipientInstanceType(**Instance= Typ
e.PARTICIPANT);

can you try this

Thanks,
Kishore G


On Mon, Oct 7, 2013 at 6:58 PM, Vinayak Borkar <vinayakb@gmail.com> wrote:

Hi,


I need to send a message to all live instances in a Helix cluster. I set the Criteria as follows:

Criteria allParticipantsCriteria =3D new Criteria();
allParticipantsCriteria.**setInstanceName("%");
allParticipantsCriteria.**setRecipientInstanceType(**
InstanceType.PARTICIPANT);
allParticipantsCriteria.**setResource("");
allParticipantsCriteria.**setPartition("");


However, the number of recipients turns out to be 0. I also tried changing<= br> the datasource in the criteria to be IDEALSTATES using the code below:

allParticipantsCriteria.**setDataSource(DataSource.**IDEALSTA= TES);


But no joy.

Please note that I connect to Helix using an administrator role. When
listing the live instances using the helix-admin client script I do see one=
live instance.

Any ideas on what could be going wrong?

Thanks,
Vinayak




--047d7b874b40f9e37204e8341170--