You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by m4rkmckenna <gi...@git.apache.org> on 2017/06/30 11:32:52 UTC

[GitHub] brooklyn-server pull request #751: Adds method to reset the shutdown flag wi...

GitHub user m4rkmckenna opened a pull request:

    https://github.com/apache/brooklyn-server/pull/751

    Adds method to reset the shutdown flag within BrooklynShutdownHooks

    Under karaf if you restarted the brooklyn-init bundle
    either manually or due to a re-wire the management context would not
    restart (requiring you to resart karaf). This change allows the OSGi
    launcher to reset the shutdown flag enabling bundle / management context restart

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/m4rkmckenna/brooklyn-server brooklyn-osgi-init-restart

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/brooklyn-server/pull/751.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #751
    
----
commit 7068308917b7424a4ff3cdab1f4416e45508c399
Author: Mark McKenna <m4...@gmail.com>
Date:   2017-06-29T15:54:12Z

    Adds method to reset the shutdown flag within BrooklynShutdownHooks
    
    Under karaf if you restarted the brooklyn-init bundle
    either manually or due to a re-wire the management context would not
    restart (requiring you to restart karaf). This change allows the OSGi
    launcher to reset the shutdown flag enabling bundle / management context
    restart

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server pull request #751: Adds method to reset the shutdown flag wi...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/brooklyn-server/pull/751


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server issue #751: Adds method to reset the shutdown flag within Br...

Posted by geomacy <gi...@git.apache.org>.
Github user geomacy commented on the issue:

    https://github.com/apache/brooklyn-server/pull/751
  
    I think this is fine the way it is- merging.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server pull request #751: Adds method to reset the shutdown flag wi...

Posted by geomacy <gi...@git.apache.org>.
Github user geomacy commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/751#discussion_r125023642
  
    --- Diff: core/src/main/java/org/apache/brooklyn/core/mgmt/internal/BrooklynShutdownHooks.java ---
    @@ -100,6 +99,17 @@ public static void invokeStopOnShutdown(Entity entity) {
             }
         }
     
    +    public static void resetShutdownFlag() {
    --- End diff --
    
    I guess you'd need both boolean parameters for the `compareAndSet`.
    
    It's just a suggestion, matter of taste really, certainly not needed as such.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server pull request #751: Adds method to reset the shutdown flag wi...

Posted by geomacy <gi...@git.apache.org>.
Github user geomacy commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/751#discussion_r125023134
  
    --- Diff: core/src/main/java/org/apache/brooklyn/core/mgmt/internal/BrooklynShutdownHooks.java ---
    @@ -100,6 +99,17 @@ public static void invokeStopOnShutdown(Entity entity) {
             }
         }
     
    +    public static void resetShutdownFlag() {
    --- End diff --
    
    might be nice to make this `resetShutdownFlag(boolean newValue)` and then also use it in [run](https://github.com/m4rkmckenna/brooklyn-server/blob/7068308917b7424a4ff3cdab1f4416e45508c399/core/src/main/java/org/apache/brooklyn/core/mgmt/internal/BrooklynShutdownHooks.java#L190-L197).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server issue #751: Adds method to reset the shutdown flag within Br...

Posted by aledsage <gi...@git.apache.org>.
Github user aledsage commented on the issue:

    https://github.com/apache/brooklyn-server/pull/751
  
    LGTM. Once jenkins has finished its checks, I'm happy for this to be merged.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---