-
1. Re: Agent plugins using the EventManager is showing an error on shutdown
mazz May 14, 2013 4:18 AM (in response to edelacruz)I think you can ignore that. That appears to be a message that has been coming out of the agent shutdown for many years - I found it in this forum post from 2009 So I'll assume it can be ignored.
-
2. Re: Agent plugins using the EventManager is showing an error on shutdown
mazz May 14, 2013 4:25 AM (in response to edelacruz)1 of 1 people found this helpfulfor the record, this is coming from EventManager.unregisterEventPoller:
void unregisterEventPoller(Resource resource, String eventType, String sourceLocation) {
PollerKey pollerKey = new PollerKey(resource.getId(), eventType, sourceLocation);
if (this.pollerThreads.containsKey(pollerKey)) {
Runnable pollerThread = this.pollerThreads.get(pollerKey);
boolean wasRemoved = this.pollerThreadPool.remove(pollerThread);
if (!wasRemoved) {
log.error("Failed to remove poller with " + pollerKey + " from thread pool.");
}
this.pollerThreads.remove(pollerKey);
}
}
This ends up being called from some plugin components' stop() methods - so this doesn't seem like anything to be concerned about. We could probably be smarter here - the thread pool might have been shutdown already and so remove returned false??? I dunno, but its during shutdown anyway, so I wouldn't worry about it. When the agent starts the components back up, it will reconstitute the thread pool and the pollers.
-
3. Re: Agent plugins using the EventManager is showing an error on shutdown
edelacruz May 14, 2013 4:50 AM (in response to mazz)Thanks mazz!