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 59456200BD4 for ; Wed, 16 Nov 2016 16:48:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 57FD9160B08; Wed, 16 Nov 2016 15:48:00 +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 A436F160B02 for ; Wed, 16 Nov 2016 16:47:59 +0100 (CET) Received: (qmail 67333 invoked by uid 500); 16 Nov 2016 15:47:58 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 67313 invoked by uid 99); 16 Nov 2016 15:47:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2016 15:47:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B4D6E2C0088 for ; Wed, 16 Nov 2016 15:47:58 +0000 (UTC) Date: Wed, 16 Nov 2016 15:47:58 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@brooklyn.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BROOKLYN-325) Restarting Brooklyn while entity deploying: entity shown as deploying indefinitely MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 16 Nov 2016 15:48:00 -0000 [ https://issues.apache.org/jira/browse/BROOKLYN-325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15670775#comment-15670775 ] ASF GitHub Bot commented on BROOKLYN-325: ----------------------------------------- Github user aledsage commented on the issue: https://github.com/apache/brooklyn-server/pull/435 @neykov comments addressed in the new final commit (and rebased against master). > Restarting Brooklyn while entity deploying: entity shown as deploying indefinitely > ---------------------------------------------------------------------------------- > > Key: BROOKLYN-325 > URL: https://issues.apache.org/jira/browse/BROOKLYN-325 > Project: Brooklyn > Issue Type: Bug > Affects Versions: 0.9.0 > Reporter: Aled Sage > > When the Brooklyn server restarts while an entity is halfway through starting or stopping, on rebind that entity continues to report its sensor as starting/stopping. However, the task does not resume so it stays in this state indefinitely. > To reproduce, run Brooklyn with persistence enabled, and try deploying a blueprint like that below: > {noformat} > location: localhost > services: > - type: org.apache.brooklyn.entity.software.base.VanillaSoftwareProcess > brooklyn.config: > launch.command: sleep 20 > stop.command: sleep 20 > checkRunning.command: true > {noformat} > While the app is starting, terminate the Brooklyn server and then restart it. In the UI, the spinning icon shows that the app is still deploying. The entity has the following sensor values: > {noformat} > service.isUp: false > service.notUp.indicators: {"service.process.isRunning":"No information on whether this service is running"} > service.state: STARTING > service.state.expected: starting @ 1470658910966 / Mon Aug 08 13:21:50 BST 2016 > {noformat} > Alternatively, deploy the app normally and then invoke stop. While the app is stopping, terminate the Brooklyn server and then restart it. The entity has the following sensor values: > {noformat} > service.process.isRunning: false > service.state: STOPPING > service.state.expected: stopping @ 1470658816662 / Mon Aug 08 13:20:16 BST 2016 > {noformat} > Given that the task won't resume, I'd expect the entity to be marked as having some kind of error. For example, the service.state as on-fire (but ideally without losing the fact that it was previously stopping). -- This message was sent by Atlassian JIRA (v6.3.4#6332)