accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Turner (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-2561) Make o.a.a.server.util.Halt test-friendly
Date Tue, 10 Jun 2014 14:26:04 GMT


Keith Turner commented on ACCUMULO-2561:

Also, halt is used to avoid shutdown hooks.  Sometimes shutdown hooks can keep the process
alive and threads within the process operating.  When a tserver loses its lock, it needs to
stop operating ASAP.

> Make o.a.a.server.util.Halt test-friendly
> -----------------------------------------
>                 Key: ACCUMULO-2561
>                 URL:
>             Project: Accumulo
>          Issue Type: Improvement
>            Reporter: Bill Havanki
>            Priority: Minor
>              Labels: newbie, 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