Return-Path: X-Original-To: apmail-gora-dev-archive@www.apache.org Delivered-To: apmail-gora-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 AA714180D3 for ; Thu, 27 Aug 2015 00:03:47 +0000 (UTC) Received: (qmail 19711 invoked by uid 500); 27 Aug 2015 00:03:46 -0000 Delivered-To: apmail-gora-dev-archive@gora.apache.org Received: (qmail 19570 invoked by uid 500); 27 Aug 2015 00:03:46 -0000 Mailing-List: contact dev-help@gora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@gora.apache.org Delivered-To: mailing list dev@gora.apache.org Received: (qmail 19333 invoked by uid 99); 27 Aug 2015 00:03:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Aug 2015 00:03:46 +0000 Date: Thu, 27 Aug 2015 00:03:46 +0000 (UTC) From: "Lewis John McGibbney (JIRA)" To: dev@gora.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (GORA-420) AccumuloStore.createSchema fails when table already exists 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/GORA-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lewis John McGibbney updated GORA-420: -------------------------------------- Assignee: Gerhard Gossen > AccumuloStore.createSchema fails when table already exists > ---------------------------------------------------------- > > Key: GORA-420 > URL: https://issues.apache.org/jira/browse/GORA-420 > Project: Apache Gora > Issue Type: Improvement > Components: gora-accumulo > Affects Versions: 0.6 > Reporter: Gerhard Gossen > Assignee: Gerhard Gossen > Priority: Minor > Labels: patch > > When {{autoCreateSchema}} is enabled, AccumuloStore.initialize will try to create the table each time without checking for its existence. This fails with an exception that is logged at level ERROR (see below). As this happens frequently, this clutters the log. > {code} > 2015-04-15 16:19:52.193 ERROR 29747 --- o.a.gora.accumulo.store.AccumuloStore : Table crawl_2_webpage exists (Table name already exists: crawl_2_webpage) > org.apache.accumulo.core.client.TableExistsException: Table crawl_2_webpage exists (Table name already exists: crawl_2_webpage) > at org.apache.accumulo.core.client.admin.TableOperationsImpl.doTableOperation(TableOperationsImpl.java:302) > at org.apache.accumulo.core.client.admin.TableOperationsImpl.doTableOperation(TableOperationsImpl.java:280) > at org.apache.accumulo.core.client.admin.TableOperationsImpl.create(TableOperationsImpl.java:208) > at org.apache.accumulo.core.client.admin.TableOperationsImpl.create(TableOperationsImpl.java:177) > at org.apache.gora.accumulo.store.AccumuloStore.createSchema(AccumuloStore.java:454) > at org.apache.gora.accumulo.store.AccumuloStore.initialize(AccumuloStore.java:372) > [...] > Caused by: org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException: null > at org.apache.accumulo.core.master.thrift.MasterClientService$executeTableOperation_result$executeTableOperation_resultStandardScheme.read(MasterClientService.java:16129) > at org.apache.accumulo.core.master.thrift.MasterClientService$executeTableOperation_result$executeTableOperation_resultStandardScheme.read(MasterClientService.java:16106) > at org.apache.accumulo.core.master.thrift.MasterClientService$executeTableOperation_result.read(MasterClientService.java:16048) > at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78) > at org.apache.accumulo.core.master.thrift.MasterClientService$Client.recv_executeTableOperation(MasterClientService.java:499) > at org.apache.accumulo.core.master.thrift.MasterClientService$Client.executeTableOperation(MasterClientService.java:480) > at org.apache.accumulo.core.client.admin.TableOperationsImpl.executeTableOperation(TableOperationsImpl.java:236) > at org.apache.accumulo.core.client.admin.TableOperationsImpl.doTableOperation(TableOperationsImpl.java:289) > ... 99 common frames omitted > {code} > Suggested fix is to check for the existence of the table before calling {{createSchema()}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)