Skip to content

Log4jShutdown.stop not idempotent #2124

@drcrallen

Description

@drcrallen
2015-12-18T12:19:51,984 ERROR [Thread-77] com.metamx.common.lifecycle.Lifecycle$AnnotationBasedHandler - Exception when stopping method[public void io.druid.initialization.Log4jShutterDownerModule$Log4jShutterDowner.stop()] on object[io.druid.initialization.Log4jShutterDownerModule$Log4jShutterDowner@7675c171]
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_66]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_66]
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_66]
    at com.metamx.common.lifecycle.Lifecycle$AnnotationBasedHandler.stop(Lifecycle.java:337) [druid-selfcontained-0.8.3-rc2-mmx1.jar:0.8.3-rc2-mmx1]
    at com.metamx.common.lifecycle.Lifecycle.stop(Lifecycle.java:261) [druid-selfcontained-0.8.3-rc2-mmx1.jar:0.8.3-rc2-mmx1]
    at io.druid.cli.CliPeon$2.run(CliPeon.java:241) [druid-selfcontained-0.8.3-rc2-mmx1.jar:0.8.3-rc2-mmx1]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]
Caused by: java.lang.IllegalStateException: Expected state [STARTED] found [STOPPED]
    at io.druid.common.config.Log4jShutdown.stop(Log4jShutdown.java:102) ~[druid-selfcontained-0.8.3-rc2-mmx1.jar:0.8.3-rc2-mmx1]
    at io.druid.initialization.Log4jShutterDownerModule$Log4jShutterDowner.stop(Log4jShutterDownerModule.java:109) ~[druid-selfcontained-0.8.3-rc2-mmx1.jar:0.8.3-rc2-mmx1]
    ... 8 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions