Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-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 0B3A317930 for ; Sat, 4 Oct 2014 18:53:33 +0000 (UTC) Received: (qmail 11046 invoked by uid 500); 4 Oct 2014 18:53:32 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 11014 invoked by uid 500); 4 Oct 2014 18:53:32 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 11000 invoked by uid 99); 4 Oct 2014 18:53:32 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Oct 2014 18:53:32 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id DC2DE1D989C; Sat, 4 Oct 2014 18:53:28 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============4868792211201620910==" MIME-Version: 1.0 Subject: Re: Review Request 26342: After view deploy, GET call returning 400, not possible to create view instances w/o restart From: "Jonathan Hurley" To: "Nate Cole" , "Jonathan Hurley" Cc: "Tom Beerbower" , "Ambari" Date: Sat, 04 Oct 2014 18:53:28 -0000 Message-ID: <20141004185328.2214.73276@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Jonathan Hurley" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/26342/ X-Sender: "Jonathan Hurley" References: <20141004125650.19041.13929@reviews.apache.org> In-Reply-To: <20141004125650.19041.13929@reviews.apache.org> Reply-To: "Jonathan Hurley" X-ReviewRequest-Repository: ambari --===============4868792211201620910== 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/26342/#review55440 ----------------------------------------------------------- Ship it! Ship It! - Jonathan Hurley On Oct. 4, 2014, 8:56 a.m., Tom Beerbower wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/26342/ > ----------------------------------------------------------- > > (Updated Oct. 4, 2014, 8:56 a.m.) > > > Review request for Ambari, Jonathan Hurley and Nate Cole. > > > Bugs: AMBARI-7644 > https://issues.apache.org/jira/browse/AMBARI-7644 > > > Repository: ambari > > > Description > ------- > > Don't build view's set of sub-resources before the view is completely setup. > > Issue : > > 1. Start ambari and have views deploy (in my case, this is first-time install so it's Jobs and Slider). > 2. Jobs finishes deploying and slider is still deploying > 3. I go to create a jobs view instance and the following call fails 400 Bad Request > > http://c6401.ambari.apache.org:8080/api/v1/views/JOBS/versions/1.0.0/instances/asd?fields=privileges%2FPrivilegeInfo,ViewInstanceInfo,resources > > {code} > { > "status" : 400, > "message" : "The properties [resources] specified in the request or predicate are not supported for the resource type ViewInstance." > } > {code} > > Regardless if I wait for slider view to deploy or not, until I restart ambari server, this GET call does not succeed. > > > Diffs > ----- > > ambari-server/src/main/java/org/apache/ambari/server/api/resources/ViewInstanceResourceDefinition.java 632a6bc > ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java e48c88e > ambari-server/src/test/java/org/apache/ambari/server/view/ViewRegistryTest.java 47bf5c3 > > Diff: https://reviews.apache.org/r/26342/diff/ > > > Testing > ------- > > Manual testing. > > New unit test added. All existing tests pass... > > Results : > > Tests run: 2076, Failures: 0, Errors: 0, Skipped: 16 > > ... > > > INFO] ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 29:37.872s > [INFO] Finished at: Sat Oct 04 08:21:53 EDT 2014 > [INFO] Final Memory: 45M/471M > [INFO] ------------------------------------------------------------------------ > > > Thanks, > > Tom Beerbower > > --===============4868792211201620910==--