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 A51A017E8E for ; Mon, 6 Apr 2015 17:46:11 +0000 (UTC) Received: (qmail 23520 invoked by uid 500); 6 Apr 2015 17:46:06 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 23491 invoked by uid 500); 6 Apr 2015 17:46:06 -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 23470 invoked by uid 99); 6 Apr 2015 17:46:06 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2015 17:46:06 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 3EE7B1C0369; Mon, 6 Apr 2015 17:46:04 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============4552453432538903018==" MIME-Version: 1.0 Subject: Re: Review Request 32540: Error in getting host components with state INSTALL_FAILED From: "Vitalyi Brodetskyi" To: "John Speidel" , "Sumit Mohanty" , "Dmitro Lisnichenko" Cc: "Vitalyi Brodetskyi" , "Ambari" Date: Mon, 06 Apr 2015 17:46:04 -0000 Message-ID: <20150406174604.5638.2940@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Vitalyi Brodetskyi" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/32540/ X-Sender: "Vitalyi Brodetskyi" References: <20150406173728.5638.66516@reviews.apache.org> In-Reply-To: <20150406173728.5638.66516@reviews.apache.org> Reply-To: "Vitalyi Brodetskyi" X-ReviewRequest-Repository: ambari --===============4552453432538903018== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit > On Квітень 6, 2015, 5:37 після полудня, Sumit Mohanty wrote: > > ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostComponentResourceProvider.java, line 603 > > > > > > Is anyone using getRequest(Map) call? Yes, it will be called during GET host components request. > On Квітень 6, 2015, 5:37 після полудня, Sumit Mohanty wrote: > > ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostComponentResourceProvider.java, line 636 > > > > > > Can you add some explanantion as to what is going on in this method and why we are using STATE property and setting DESIRED_STATE only if its not null? This type of request i'm using for DELETE,UPDATE,CREATE host component methods. Before, for all of them it was used getRequest. After getRequest was fixed, all other PUT,POST,DELETE requests start work in new way too...but we don't want this. We want changes only for GET request. For all of these requests, user will set desired_state using API, that's why i'm seting state and desired state -> desired_state(as it was described in your comment in jira). Check for null, maybe is not really needed, but i've added it automatically. > On Квітень 6, 2015, 5:37 після полудня, Sumit Mohanty wrote: > > ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerImplTest.java, line 928 > > > > > > I assume you also have manually tested the combinations of querying based on "state" and updating based on "state" yes, testing it now...all requests and blueprints. - Vitalyi ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/32540/#review78939 ----------------------------------------------------------- On Квітень 6, 2015, 4:57 після полудня, Vitalyi Brodetskyi wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/32540/ > ----------------------------------------------------------- > > (Updated Квітень 6, 2015, 4:57 після полудня) > > > Review request for Ambari, Dmitro Lisnichenko, John Speidel, and Sumit Mohanty. > > > Bugs: AMBARI-4782 > https://issues.apache.org/jira/browse/AMBARI-4782 > > > Repository: ambari > > > Description > ------- > > . > > > Diffs > ----- > > ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java f323920 > ambari-server/src/main/java/org/apache/ambari/server/controller/ServiceComponentHostRequest.java 6536bd5 > ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostComponentResourceProvider.java 639e170 > ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerImplTest.java f7144b8 > > Diff: https://reviews.apache.org/r/32540/diff/ > > > Testing > ------- > > mvn clean test > > > Thanks, > > Vitalyi Brodetskyi > > --===============4552453432538903018==--