Return-Path: X-Original-To: apmail-atlas-dev-archive@minotaur.apache.org Delivered-To: apmail-atlas-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 8B02D19D4A for ; Thu, 14 Apr 2016 15:25:12 +0000 (UTC) Received: (qmail 69406 invoked by uid 500); 14 Apr 2016 15:25:12 -0000 Delivered-To: apmail-atlas-dev-archive@atlas.apache.org Received: (qmail 69359 invoked by uid 500); 14 Apr 2016 15:25:12 -0000 Mailing-List: contact dev-help@atlas.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.incubator.apache.org Delivered-To: mailing list dev@atlas.incubator.apache.org Received: (qmail 69348 invoked by uid 99); 14 Apr 2016 15:25:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2016 15:25:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D25781A0504 for ; Thu, 14 Apr 2016 15:25:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.819 X-Spam-Level: X-Spam-Status: No, score=-0.819 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 4SXMYymJ06lg for ; Thu, 14 Apr 2016 15:25:08 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id B11585F239 for ; Thu, 14 Apr 2016 15:25:06 +0000 (UTC) Received: (qmail 69331 invoked by uid 99); 14 Apr 2016 15:25:05 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2016 15:25:05 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 15F812B03AA; Thu, 14 Apr 2016 15:25:02 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3748524063648607398==" MIME-Version: 1.0 Subject: Re: Review Request 45929: ATLAS-628: Starting two Atlas instances at the same time causes exceptions in HA mode. From: Hemanth Yamijala To: atlas , Hemanth Yamijala Date: Thu, 14 Apr 2016 15:25:02 -0000 Message-ID: <20160414152502.29094.52326@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Hemanth Yamijala X-ReviewGroup: atlas X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/45929/ X-Sender: Hemanth Yamijala References: <20160412060017.29094.69123@reviews.apache.org> In-Reply-To: <20160412060017.29094.69123@reviews.apache.org> X-ReviewBoard-Diff-For: webapp/src/main/java/org/apache/atlas/web/setup/SetupSteps.java X-ReviewBoard-Diff-For: server-api/src/main/java/org/apache/atlas/setup/SetupStep.java X-ReviewBoard-Diff-For: repository/src/main/java/org/apache/atlas/repository/graph/GraphSchemaInitializer.java X-ReviewBoard-Diff-For: webapp/src/test/java/org/apache/atlas/web/setup/SetupStepsTest.java X-ReviewBoard-Diff-For: server-api/src/main/java/org/apache/atlas/setup/SetupException.java X-ReviewBoard-Diff-For: webapp/src/main/java/org/apache/atlas/web/setup/AtlasSetup.java X-ReviewBoard-Diff-For: webapp/src/main/java/org/apache/atlas/web/setup/AtlasSetupModule.java Reply-To: Hemanth Yamijala X-ReviewRequest-Repository: atlas --===============3748524063648607398== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/45929/ ----------------------------------------------------------- (Updated April 14, 2016, 3:24 p.m.) Review request for atlas. Changes ------- Added the ability to run the setup steps as part of Atlas server start for those who don't want to rely on an additional setup step. This is enabled by a configuration (disabled by default) if required. Bugs: ATLAS-628 https://issues.apache.org/jira/browse/ATLAS-628 Repository: atlas Description ------- Implements capability in atlas to run a set of registered setup steps. Currently the only step is setting up the backend graph repository. The intent is to extend this later for setting up Kafka at least and maybe other things like Solr. Diffs (updated) ----- distro/src/bin/atlas_start.py 7db74c0 distro/src/conf/atlas-application.properties 4131240 docs/src/site/twiki/Configuration.twiki 023f5a0 repository/src/main/java/org/apache/atlas/repository/graph/GraphSchemaInitializer.java PRE-CREATION server-api/src/main/java/org/apache/atlas/setup/SetupException.java PRE-CREATION server-api/src/main/java/org/apache/atlas/setup/SetupStep.java PRE-CREATION webapp/src/main/java/org/apache/atlas/Atlas.java 58c386d webapp/src/main/java/org/apache/atlas/web/service/CuratorFactory.java 773e04e webapp/src/main/java/org/apache/atlas/web/setup/AtlasSetup.java PRE-CREATION webapp/src/main/java/org/apache/atlas/web/setup/AtlasSetupModule.java PRE-CREATION webapp/src/main/java/org/apache/atlas/web/setup/SetupSteps.java PRE-CREATION webapp/src/test/java/org/apache/atlas/web/setup/SetupStepsTest.java PRE-CREATION Diff: https://reviews.apache.org/r/45929/diff/ Testing ------- Existing ITs, UTs pass. * Manually verified setting up with both embedded HBase setup and external HBase setup. * Also ran atlas HA instances at exactly same time and verified the noted exception does not happen. Thanks, Hemanth Yamijala --===============3748524063648607398==--