Joshua Hyde created FLUME-2406:
----------------------------------

             Summary: Add ability to read lifecycle state of Flume agent process
                 Key: FLUME-2406
                 URL: https://issues.apache.org/jira/browse/FLUME-2406
             Project: Flume
          Issue Type: New Feature
          Components: Sinks+Sources
            Reporter: Joshua Hyde
            Priority: Minor


When I shut down my Flume agent, my custom Jetty-backed HTTP source will still 
try to finish processing a request by putting it into a channel that is closed. 
This throws an {{IllegalStateException}}, which is fine, but I'd like my source 
to suppress logging these messages when I'm shutting down the agent (it creates 
a lot of noise when cycling multiple agents).

Ideally, the source would be able to either hook into the lifecycle of the 
agent process itself or query some class and ask, "Am I shutting down?" and act 
appropriately from there; presently, though, there doesn't seem to be any such 
way to query about the current state of the agent's lifecycle.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to