Return-Path: X-Original-To: apmail-zest-dev-archive@minotaur.apache.org Delivered-To: apmail-zest-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A7606175EB for ; Fri, 10 Jul 2015 09:39:04 +0000 (UTC) Received: (qmail 8935 invoked by uid 500); 10 Jul 2015 09:39:04 -0000 Delivered-To: apmail-zest-dev-archive@zest.apache.org Received: (qmail 8896 invoked by uid 500); 10 Jul 2015 09:39:04 -0000 Mailing-List: contact dev-help@zest.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zest.apache.org Delivered-To: mailing list dev@zest.apache.org Received: (qmail 8885 invoked by uid 99); 10 Jul 2015 09:39:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2015 09:39:04 +0000 Date: Fri, 10 Jul 2015 09:39:04 +0000 (UTC) From: "Paul Merlin (JIRA)" To: dev@zest.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (ZEST-56) Intermittent failures of ElasticSearch indexing on startup 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/ZEST-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul Merlin resolved ZEST-56. ----------------------------- Resolution: Fixed > Intermittent failures of ElasticSearch indexing on startup > ---------------------------------------------------------- > > Key: ZEST-56 > URL: https://issues.apache.org/jira/browse/ZEST-56 > Project: Zest > Issue Type: Bug > Affects Versions: 2.0 > Reporter: Paul Merlin > Assignee: Paul Merlin > Labels: elasticsearch, extensions, indexing > Fix For: 2.1 > > > ElasticSearch can take some time to get ready for queries and actual activation code do not wait for it's readiness. > If a query is sent to ES right after activation there's a chance it's not ready and one gets the following error: "Failed to execute phase [query], all shards failed". > This error pops up quite often when using embedded ES in unit tests. > To mitigate this we should, on activation: > - ensure the Qi4j index is refreshed > - wait for ES yellow status (the primary shard is allocated but replicas may not be) -- This message was sent by Atlassian JIRA (v6.3.4#6332)