[ 
https://issues.apache.org/jira/browse/BROOKLYN-532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16161408#comment-16161408
 ] 

ASF GitHub Bot commented on BROOKLYN-532:
-----------------------------------------

Github user aledsage commented on the issue:

    https://github.com/apache/brooklyn-server/pull/815
  
    I tested this by using 
`brooklyn-dist/karaf/apache-brooklyn/target/assembly/`, running `./bin/start`.
    
    I added a `Thread.sleep()` into the code to check that the rest-api and 
web-console started up as soon as karaf-init was done (they did).
    (Oops - I left that config option in `BasicLauncher.startPartTwo()`, I'd 
delete that!)
    
    I also did a `bundle:refresh 123` to refresh `brooklyn-core` and confirmed 
that it started up correctly.
    
    If one just does a `bundle:restart` on only the `brooklyn-karaf-start` then 
it fails (because can't call `start()` multiple times), but if 
`brooklyn-karaf-init` is first refreshed then it works as expected.


> UI / rest api not available after a very long rebind
> ----------------------------------------------------
>
>                 Key: BROOKLYN-532
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-532
>             Project: Brooklyn
>          Issue Type: Bug
>    Affects Versions: 0.11.0
>            Reporter: Aled Sage
>
> I restarted Brooklyn (in karaf-mode) when it had a huge number of entities 
> (approx 50,000). It eventually finished rebinding, but the REST api and 
> web-console didn't come up properly.
> The log showed the exception below:
> {noformat}
> 2017-08-31T18:15:49,691 ERROR  15 o.a.a.b.c.BlueprintContainerImpl [rint 
> Extender: 1] Unable to start blueprint container for bundle 
> org.apache.brooklyn.rest-resources/0.12.0.SNAPSHOT due to unresolved 
> dependencies [(objectClass=org.apache.brooklyn.core.mgmt.ShutdownHandler), 
> (objectClass=org.apache.brooklyn.core.mgmt.internal.ManagementContextInternal)]
> java.util.concurrent.TimeoutException: null
>         at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:370)
>  [15:org.apache.aries.blueprint.core:1.8.2]
>         at 
> org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)
>  [15:org.apache.aries.blueprint.core:1.8.2]
>         at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>         at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>  [?:?]
>         at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>  [?:?]
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [?:?]
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [?:?]
>         at java.lang.Thread.run(Thread.java:748) [?:?]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to