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 70F1B17F7D for ; Mon, 6 Apr 2015 15:13:13 +0000 (UTC) Received: (qmail 7348 invoked by uid 500); 6 Apr 2015 15:13:12 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 7281 invoked by uid 500); 6 Apr 2015 15:13:12 -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 7270 invoked by uid 99); 6 Apr 2015 15:13:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2015 15:13:12 +0000 Date: Mon, 6 Apr 2015 15:13:12 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SOLR-7352) Synchronize CloudSolrStream EOF Tuple Map MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-7352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14481292#comment-14481292 ] ASF subversion and git services commented on SOLR-7352: ------------------------------------------------------- Commit 1671547 from [~joel.bernstein] in branch 'dev/trunk' [ https://svn.apache.org/r1671547 ] SOLR-7352: Synchronize CloudSolrStream EOF Tuple Map > Synchronize CloudSolrStream EOF Tuple Map > ----------------------------------------- > > Key: SOLR-7352 > URL: https://issues.apache.org/jira/browse/SOLR-7352 > Project: Solr > Issue Type: Bug > Reporter: Joel Bernstein > Attachments: SOLR-7352.patch, SOLR-7352.patch > > > CloudSolrStream currently collects the EOF Tuples from the underlying SolrStreams in an un-synchronized Map. > This ticket synchronizes this Map because of the following race condition: > The underlying SolrStream's are opened in parallel. If the first Tuple returned by two or more SolrStream's is an EOF Tuple, then a race condition will occur as the EOF Tuples are added to the Map. > The race condition only occurs if EOF tuples are returned during the *opening* of the SolrStreams (zero results returned). This is because the *reading* of SolrStreams is performed in a single thread, so if the initial Tuple returned is not an EOF Tuple no race condition is possible. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org