accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Busbey (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-2561) Make o.a.a.server.util.Halt test-friendly
Date Thu, 27 Mar 2014 03:47:26 GMT


Sean Busbey commented on ACCUMULO-2561:

What are our options here? subclassing Error and throwing that? in that case we'd still run
shutdown hooks, no? Do we have a design document somewhere that covers why we use the super-fast-stop-the-world
version of exiting?

> Make o.a.a.server.util.Halt test-friendly
> -----------------------------------------
>                 Key: ACCUMULO-2561
>                 URL:
>             Project: Accumulo
>          Issue Type: Improvement
>            Reporter: Bill Havanki
>            Priority: Minor
>              Labels: testability
> The various servers use {{o.a.a.server.util.Halt}} to terminate the JVM if something
goes wrong. {{Halt}} class calls {{Runtime.halt()}}, which of course would torpedo any testing
going on. The mechanism should be reworked to not kill the JVM in a test scenario.

This message was sent by Atlassian JIRA

View raw message