Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A2F329778 for ; Thu, 27 Oct 2011 23:12:29 +0000 (UTC) Received: (qmail 11209 invoked by uid 500); 27 Oct 2011 23:12:26 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 11124 invoked by uid 500); 27 Oct 2011 23:12:26 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 11114 invoked by uid 99); 27 Oct 2011 23:12:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Oct 2011 23:12:26 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ellecer@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qw0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Oct 2011 23:12:19 +0000 Received: by qadc12 with SMTP id c12so4289273qad.18 for ; Thu, 27 Oct 2011 16:11:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=NqmAZTS8rzZCC5fWabjuAcexx4z5Ma2cVjVCs7iJaSE=; b=AjhbJ8tCR9paPOH8DfxZkHKC+5g02klAWUd8luyDNl/HntsKqDX56ThVBN7YuEefh+ qweXfFBNs2r8Jkd1n81B7mnjWtGmzuYtRBMvy7Hvsgu3whoZHABaK9WOQhNi2RptsjmA Gqhi0dyKwGxgyAZetFpBg8Uup6V+q6md2yg48= Received: by 10.182.164.74 with SMTP id yo10mr16478obb.69.1319757119091; Thu, 27 Oct 2011 16:11:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.15.70 with HTTP; Thu, 27 Oct 2011 16:11:38 -0700 (PDT) In-Reply-To: <4EA91812.7030105@apache.org> References: <4EA91812.7030105@apache.org> From: Ellecer Valencia Date: Fri, 28 Oct 2011 10:11:38 +1100 Message-ID: Subject: Re: Rollback in Tomcat7 under parallel deployment To: Tomcat Users List Content-Type: multipart/alternative; boundary=e89a8f646acf45f63604b04fe6bd X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f646acf45f63604b04fe6bd Content-Type: text/plain; charset=UTF-8 On Thursday, October 27, 2011, Mark Thomas wrote: >> Also, what happens if ROOT##001 and ##002 have the same log4j configs >> and are writing to the same log file?? How have people handled this >> situation? > > You'll certainly end up with both apps writing to the same file. Whether > or not that is a problem will depend on exactly how you have configured > logging. See [1] for other things to think about. Looks like it's something that shouldn't be allowed to occur, at least under log4j. http://logging.apache.org/log4j/1.2/manual.html "... image of the log4j environment will act independetly and without any mutual synchronization. For example, FileAppenders defined exactly the same way in multiple web-application configurations will all attempt to write the same file. The results are likely to be less than satisfactory. You must make sure that log4j configurations of different web-applications do not use the same underlying system resource." Logback supports writing to the same file, but at the cost of 3x slower performance: http://logback.qos.ch/manual/appenders.html#prudent But that entails even more changes in our code, so we'll have to have a workaround. (i guess we could replace log4j.jar with log4j-over-slf4j.jar then use logback! http://www.slf4j.org/legacy.html) >> thanks for you help, > > A better way to handle the rollback scenario is to deploy a copy of > ROOT##001.war as ROOT#003.war. That's the first option we saw, but just wanted to confirm that there wasn't another rollback feature similar to parallel deployment. I guess in a rollback scenario it's probably more prudent to just end those sessions since the app is broken anyway. The idea of "parallel rollback" hurts my head just imagining how it would be implemented! =) Ellecer > > Mark > > [1] http://java-monitor.com/forum/showthread.php?t=1288 --e89a8f646acf45f63604b04fe6bd--