Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8EBF106C8 for ; Sun, 8 Sep 2013 17:18:11 +0000 (UTC) Received: (qmail 52715 invoked by uid 500); 8 Sep 2013 17:18:10 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 52582 invoked by uid 500); 8 Sep 2013 17:18:10 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 52575 invoked by uid 99); 8 Sep 2013 17:18:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Sep 2013 17:18:10 +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 (athena.apache.org: domain of SRS0=GjxqIY=SU=basetechnology.com=jack@yourhostingaccount.com designates 65.254.253.56 as permitted sender) Received: from [65.254.253.56] (HELO mailout07.yourhostingaccount.com) (65.254.253.56) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Sep 2013 17:18:04 +0000 Received: from mailscan08.yourhostingaccount.com ([10.1.15.8] helo=mailscan08.yourhostingaccount.com) by mailout07.yourhostingaccount.com with esmtp (Exim) id 1VIicJ-0001RI-FL for dev@lucene.apache.org; Sun, 08 Sep 2013 13:17:43 -0400 Received: from impout01.yourhostingaccount.com ([10.1.55.1] helo=impout01.yourhostingaccount.com) by mailscan08.yourhostingaccount.com with esmtp (Exim) id 1VIicI-0006tQ-Up for dev@lucene.apache.org; Sun, 08 Sep 2013 13:17:42 -0400 Received: from authsmtp08.yourhostingaccount.com ([10.1.18.8]) by impout01.yourhostingaccount.com with NO UCE id NhHi1m0080ASqTN01hHi6l; Sun, 08 Sep 2013 13:17:42 -0400 X-Authority-Analysis: v=2.0 cv=EJGEIilC c=1 sm=1 a=UdCbmyego4VUa/xJBgcoFg==:17 a=aQzbgH187woA:10 a=n9A6ZvEIX2EA:10 a=3jZET7lWBKwA:10 a=jvYhGVW7AAAA:8 a=bGonxsSeiKUA:10 a=aNxbrnfDWpfCStHDUr8A:9 a=QEXdDO2ut3YA:10 a=T0J05VXA_jJqOTJNr7cA:9 a=_W_S_7VecoQA:10 a=jqVBOPHhb7EmEO8v:21 a=8amoANLqcXHyoDJd6jbCBw==:117 X-EN-OrigOutIP: 10.1.18.8 X-EN-IMPSID: NhHi1m0080ASqTN01hHi6l Received: from 207-237-114-232.c3-0.nyr-ubr1.nyr.ny.cable.rcn.com ([207.237.114.232] helo=JackKrupansky) by authsmtp08.yourhostingaccount.com with esmtpa (Exim) id 1VIicI-0004pF-JE for dev@lucene.apache.org; Sun, 08 Sep 2013 13:17:42 -0400 Message-ID: <45500BE2B0A548529B3BE4234E48E523@JackKrupansky> From: "Jack Krupansky" To: "Lucene/Solr Dev" Subject: copy/paste typo in solr.cloud.Overseer.getShardNames exception Date: Sun, 8 Sep 2013 13:17:32 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0119_01CEAC95.C69F5B40" X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 X-EN-UserInfo: e0a4b55451ed9f27313ebf02e3d4348d:fc4a93e1349e680c52bdd723c0ab3ef6 X-EN-AuthUser: jack@basetechnology.com Sender: "Jack Krupansky" X-EN-OrigIP: 207.237.114.232 X-EN-OrigHost: 207-237-114-232.c3-0.nyr-ubr1.nyr.ny.cable.rcn.com X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0119_01CEAC95.C69F5B40 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable In org.apache.solr.cloud.Overseer.getShardNames of branch_4x, the second = exception message is an exact copy of the first, but probably should be = something like =E2=80=9Cshards param must specify at least one = shard=E2=80=9D: static void getShardNames(List shardNames, String shards) { if(shards =3D=3Dnull) throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, = "shards" + " is a required param"); for (String s : shards.split(",")) { if(s =3D=3Dnull || s.trim().isEmpty()) continue; shardNames.add(s.trim()); } if(shardNames.isEmpty()) throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, = "shards" + " is a required param"); } -- Jack Krupansky ------=_NextPart_000_0119_01CEAC95.C69F5B40 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
In org.apache.solr.cloud.Overseer.getShardNames of branch_4x, the = second=20 exception message is an exact copy of the first, but probably should be=20 something like =E2=80=9Cshards param must specify at least one = shard=E2=80=9D:
 
static void getShardNames(List<String> shardNames, String = shards)=20 {
   if(shards =3D=3Dnull)
     throw new=20 SolrException(SolrException.ErrorCode.BAD_REQUEST, "shards" + " is a = required=20 param");
   for (String s : shards.split(",")) {
     if(s =3D=3Dnull || s.trim().isEmpty()) = continue;
     shardNames.add(s.trim());
   }
   if(shardNames.isEmpty())
     throw new=20 SolrException(SolrException.ErrorCode.BAD_REQUEST, "shards" + " is a = required=20 param");
 
}

-- Jack Krupansky
------=_NextPart_000_0119_01CEAC95.C69F5B40--