Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-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 6C5BB17B78 for ; Tue, 24 Feb 2015 11:52:37 +0000 (UTC) Received: (qmail 31382 invoked by uid 500); 24 Feb 2015 11:52:03 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 31323 invoked by uid 500); 24 Feb 2015 11:52:03 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 31313 invoked by uid 99); 24 Feb 2015 11:52:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2015 11:52:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of isuruh@wso2.com designates 209.85.217.171 as permitted sender) Received: from [209.85.217.171] (HELO mail-lb0-f171.google.com) (209.85.217.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2015 11:51:58 +0000 Received: by lbvp9 with SMTP id p9so24388997lbv.3 for ; Tue, 24 Feb 2015 03:51:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wso2.com; s=google; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=JbdDRZb6fay7B1pSKCf+iGlcg2TZ+v+Mlgj1yS6srBE=; b=TOr1cDVIP7hrL+6lwToch8H5tZH5TyK9TGtP/0QXxXcFpUV7prbrllgzNQOGHUts8T uOmaA0sSHIp5a5HB+xvdI9cpQxz1DP8M429z8B46PqgnGRblFCgvd6P9ub4Cwe7NVbTg aNXF6lRHu9Btr/w/C0lj9M8otIReoNzpTZvYY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=JbdDRZb6fay7B1pSKCf+iGlcg2TZ+v+Mlgj1yS6srBE=; b=V+jD3zuoEURL5CQOvdlPh2Zzgn/RI9cV6huy1jnJATg0VEEjY8jw9qw780R7KP+H1a d3MMc1PlC0gVNxU2STbMPvV9UNmOzn/+/rBdS8faMr5vLJ6cUC+gqjIzAOwpa6HSEyHs yScvIf9HgdeEIitp0B4WeRdOYteeFilfegMyQFkod5v6ZngAZyHk6UCSdrQFvDI/CZz3 0iBmqWFq88Vvajjqz4nGz1lF3PbrSJfAMKLaurrYewkc/MCWXU+HO/+J62PCHCHUDAGB 1mqSe/Op1mYuVJVgfRO6+ZM4rLQ4eyFaRwUBA7HDEYTj5YasQChBBF/ukdwNRfDy/dQw cplw== X-Gm-Message-State: ALoCoQly8XywbdsIhsyfkAj5UNoLvV1Vxyf7v/ozjWDDlchcheY0ri5yj/i+triUDxTskdaNsiB/ MIME-Version: 1.0 X-Received: by 10.112.242.163 with SMTP id wr3mr6065967lbc.98.1424778697472; Tue, 24 Feb 2015 03:51:37 -0800 (PST) Sender: isuruh@wso2.com Received: by 10.112.169.3 with HTTP; Tue, 24 Feb 2015 03:51:37 -0800 (PST) In-Reply-To: References: Date: Tue, 24 Feb 2015 17:21:37 +0530 X-Google-Sender-Auth: A6_F1wdkrBIUChJ5QnkwivOzIC0 Message-ID: Subject: Re: Warning log is printed every time Application is deployed From: Isuru Haththotuwa To: dev Content-Type: multipart/alternative; boundary=001a1134865025a316050fd4244b X-Virus-Checked: Checked by ClamAV on apache.org --001a1134865025a316050fd4244b Content-Type: text/plain; charset=UTF-8 On Tue, Feb 24, 2015 at 5:12 PM, Lahiru Sandaruwan wrote: > Hi, > > Noticed $subject. Is this something not required or a log that really > meaningful? > Had a look at the code, seems we're checking if the lock is held by the current thread before unlocking, and this warning is printed if a different thread is trying to release the lock. IMHO this condition should not occur. Usually a lock should be acquired and released from the same thread, and we do not need to check whether the lock is being held by the current thread. I'll try to have a look at what is happening. > > Thanks. > > [1] > > [2015-02-24 17:06:01,692] WARN > {org.apache.stratos.common.concurrent.locks.ReadWriteLock} - System > warning! Trying to release a lock which has not been taken by the same > thread: [lock-name] application [thread-id] 105 [thread-name] > pool-26-thread-2 > > -- > -- > Lahiru Sandaruwan > Committer and PMC member, Apache Stratos, > Senior Software Engineer, > WSO2 Inc., http://wso2.com > lean.enterprise.middleware > > email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/ > linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 > > -- > > > Thanks and Regards, > > Isuru H. > > +94 716 358 048 * > * > > > * * > > > --001a1134865025a316050fd4244b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

--001a1134865025a316050fd4244b--