You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "paul qing (JIRA)" <ji...@apache.org> on 2017/04/21 09:07:04 UTC

[jira] [Created] (DIRSERVER-2190) there is thread leak when did following operations: ADD,DELETE,MODIFY,MOVE,RENAME

paul qing created DIRSERVER-2190:
------------------------------------

             Summary: there is thread leak when did following operations: ADD,DELETE,MODIFY,MOVE,RENAME
                 Key: DIRSERVER-2190
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2190
             Project: Directory ApacheDS
          Issue Type: Bug
    Affects Versions: 2.0.0-M23, 2.0.0-M22, 2.0.0-M21, 2.0.0-M20
         Environment: windows 7 ,linux.
            Reporter: paul qing


the org.apache.directory.server.core.event.EventInterceptor class didn't override the destory method. and the thread pool didn't call shutdown method.i think it should call thread pool's shutdown method in the inteceptor's destory method and it should call destory inteceptor in the org.apache.directory.server.core.DefaultDirectoryService's shutdown method. such as:
public synchronized void shutdown() throws Exception
    {**********
  **************
this.destoryInteceptors();
}

	private void destoryInteceptors() {
		for (Interceptor interceptor : interceptors) {
			interceptor.destroy();
		}
	}




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)