Return-Path: X-Original-To: apmail-curator-dev-archive@minotaur.apache.org Delivered-To: apmail-curator-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4951610C96 for ; Mon, 24 Jun 2013 11:50:52 +0000 (UTC) Received: (qmail 95408 invoked by uid 500); 24 Jun 2013 11:50:52 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 95267 invoked by uid 500); 24 Jun 2013 11:50:50 -0000 Mailing-List: contact dev-help@curator.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.incubator.apache.org Delivered-To: mailing list dev@curator.incubator.apache.org Received: (qmail 94534 invoked by uid 99); 24 Jun 2013 11:50:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jun 2013 11:50:45 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 24 Jun 2013 11:50:42 +0000 Received: (qmail 91444 invoked by uid 99); 24 Jun 2013 11:50:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jun 2013 11:50:20 +0000 Date: Mon, 24 Jun 2013 11:50:20 +0000 (UTC) From: "Colin Morelli (JIRA)" To: dev@curator.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CURATOR-39) ServiceProvider thread is not closed during ServiceDiscovery close MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CURATOR-39?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Colin Morelli updated CURATOR-39: --------------------------------- Description: This may simple be an issue on my end, but I believe it to be an issue in Curator. I'm using 2.0.1-incubating, using the following to build a ServiceProvider: {code}serviceProvider = serviceDiscovery.serviceProviderBuilder() .serviceName(name) .providerStrategy(new RoundRobinStrategy()) .build(); serviceProvider.start();{code} I have a name => ServiceProvider map that stores all my service providers. During shutdown, I call: for (ServiceProvider serviceProvider : serviceProviderMap.values()) { serviceProvider.close(); } serviceDiscovery.close(); Which is redundant, it seems, because serviceDiscovery itself appears to shutdown the providers. However, I still end up with a dangling "ServiceProvider-0" thread that keeps Tomcat open. If I start the container up, without making a service call (so I don't allocate any ServiceProviders), Tomcat shuts down cleanly. As soon as a ServiceProvider is allocated (by making a service call) Tomcat hangs during shutdown, and informs me of the remaining thread. I will try to provide more information as it becomes available to me. was: This may simple be an issue on my end, but I believe it to be an issue in Curator. I'm using 2.0.1-incubating, using the following to build a ServiceProvider: serviceProvider = serviceDiscovery.serviceProviderBuilder() .serviceName(name) .providerStrategy(new RoundRobinStrategy()) .build(); serviceProvider.start(); I have a name => ServiceProvider map that stores all my service providers. During shutdown, I call: for (ServiceProvider serviceProvider : serviceProviderMap.values()) { serviceProvider.close(); } serviceDiscovery.close(); Which is redundant, it seems, because serviceDiscovery itself appears to shutdown the providers. However, I still end up with a dangling "ServiceProvider-0" thread that keeps Tomcat open. If I start the container up, without making a service call (so I don't allocate any ServiceProviders), Tomcat shuts down cleanly. As soon as a ServiceProvider is allocated (by making a service call) Tomcat hangs during shutdown, and informs me of the remaining thread. I will try to provide more information as it becomes available to me. > ServiceProvider thread is not closed during ServiceDiscovery close > ------------------------------------------------------------------ > > Key: CURATOR-39 > URL: https://issues.apache.org/jira/browse/CURATOR-39 > Project: Apache Curator > Issue Type: Bug > Reporter: Colin Morelli > Assignee: Jordan Zimmerman > > This may simple be an issue on my end, but I believe it to be an issue in Curator. I'm using 2.0.1-incubating, using the following to build a ServiceProvider: > {code}serviceProvider = serviceDiscovery.serviceProviderBuilder() > .serviceName(name) > .providerStrategy(new RoundRobinStrategy()) > .build(); > serviceProvider.start();{code} > I have a name => ServiceProvider map that stores all my service providers. During shutdown, I call: > for (ServiceProvider serviceProvider : serviceProviderMap.values()) { > serviceProvider.close(); > } > serviceDiscovery.close(); > Which is redundant, it seems, because serviceDiscovery itself appears to shutdown the providers. However, I still end up with a dangling "ServiceProvider-0" thread that keeps Tomcat open. > If I start the container up, without making a service call (so I don't allocate any ServiceProviders), Tomcat shuts down cleanly. As soon as a ServiceProvider is allocated (by making a service call) Tomcat hangs during shutdown, and informs me of the remaining thread. I will try to provide more information as it becomes available to me. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira