Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D8EB9200CF3 for ; Wed, 13 Sep 2017 21:16:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D79571609C3; Wed, 13 Sep 2017 19:16:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2B44C1609CB for ; Wed, 13 Sep 2017 21:16:03 +0200 (CEST) Received: (qmail 71879 invoked by uid 500); 13 Sep 2017 19:16:02 -0000 Mailing-List: contact issues-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 issues@ambari.apache.org Received: (qmail 71861 invoked by uid 99); 13 Sep 2017 19:16:02 -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; Wed, 13 Sep 2017 19:16:02 +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 CAD341A53F7 for ; Wed, 13 Sep 2017 19:16:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.502 X-Spam-Level: X-Spam-Status: No, score=-99.502 tagged_above=-999 required=6.31 tests=[KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 6OZnqwUJXzh8 for ; Wed, 13 Sep 2017 19:16:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id CF8685FB96 for ; Wed, 13 Sep 2017 19:16:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6F957E0DA4 for ; Wed, 13 Sep 2017 19:16:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2013725383 for ; Wed, 13 Sep 2017 19:16:00 +0000 (UTC) Date: Wed, 13 Sep 2017 19:16:00 +0000 (UTC) From: "Jonathan Hurley (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-21951) Last Run Service Check for SPARK Picks up SPARK2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 13 Sep 2017 19:16:04 -0000 [ https://issues.apache.org/jira/browse/AMBARI-21951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Hurley updated AMBARI-21951: ------------------------------------- Attachment: AMBARI-21951.patch > Last Run Service Check for SPARK Picks up SPARK2 > ------------------------------------------------ > > Key: AMBARI-21951 > URL: https://issues.apache.org/jira/browse/AMBARI-21951 > Project: Ambari > Issue Type: Bug > Affects Versions: 2.6.0 > Reporter: Jonathan Hurley > Assignee: Jonathan Hurley > Priority: Critical > Fix For: 2.6.0 > > Attachments: AMBARI-21951.patch > > > STR: > - Install a cluster with Spark and Spark2 > - Remove Spark2 > - Change a Spark configuration > - Run the Spark Service check > - Attempt to perform an upgrade > The upgrade pre-checks will stop you saying something like: > {code} > 02 Aug 2017 10:17:23,701 INFO [ambari-client-thread-28] ServiceCheckValidityCheck:149 - Service SPARK latest config change is 08-02-2017 09:45:16, latest service check executed at 12-31-1969 03:59:59 > {code} > The start time suggests a value of -1 in my cluster. The problem is that I aborted my SPARK2 service check and then removed the service. However, the pre-check seems to be matching on the name an incorrectly detecting the old SPARK2 check as the one for SPARK: > {code} > boolean serviceCheckWasExecuted = false; > for (HostRoleCommandEntity command : latestTimestamps.values()) { > if (null != command.getCommandDetail() && command.getCommandDetail().contains(serviceName)) { > {code} > Because {{contains()}} is finding {{SPARK}} in {{SPARK2_SERVICE_CHECK}}, it's incorrectly picking up the wrong values... -- This message was sent by Atlassian JIRA (v6.4.14#64029)