Return-Path: X-Original-To: apmail-accumulo-dev-archive@www.apache.org Delivered-To: apmail-accumulo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 78AC010F67 for ; Thu, 1 May 2014 20:50:47 +0000 (UTC) Received: (qmail 79686 invoked by uid 500); 1 May 2014 20:50:46 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 79637 invoked by uid 500); 1 May 2014 20:50:45 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 79619 invoked by uid 99); 1 May 2014 20:50:44 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2014 20:50:44 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id B35461D73D2; Thu, 1 May 2014 20:50:38 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3066335337414107326==" MIME-Version: 1.0 Subject: Re: Review Request 20613: ACCUMULO-2383 - support for Log4j properties From: "Bill Havanki" To: "Vikram Srivastava" , "Josh Elser" Cc: "Bill Havanki" , "Christopher Tubbs" , "accumulo" Date: Thu, 01 May 2014 20:50:38 -0000 Message-ID: <20140501205038.4204.27553@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Bill Havanki" X-ReviewGroup: accumulo X-ReviewRequest-URL: https://reviews.apache.org/r/20613/ X-Sender: "Bill Havanki" References: <20140501200636.16690.56366@reviews.apache.org> In-Reply-To: <20140501200636.16690.56366@reviews.apache.org> Reply-To: "Bill Havanki" X-ReviewRequest-Repository: accumulo --===============3066335337414107326== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit > On May 1, 2014, 4:06 p.m., Christopher Tubbs wrote: > > server/base/src/main/java/org/apache/accumulo/server/Accumulo.java, lines 128-131 > > > > > > I think it'd be better to prefer properties file over xml. My reasons to prefer XML: 1) our examples already use XML; 2) XML configurations are more flexible and powerful than properties. Using XML configurations is mildly encouraged now. Still, Log4J only looks for properties in its default init procedure (AFAICT), so perhaps the ordering here would be surprising to a user? - Bill ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/20613/#review41940 ----------------------------------------------------------- On April 23, 2014, 4:37 p.m., Bill Havanki wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/20613/ > ----------------------------------------------------------- > > (Updated April 23, 2014, 4:37 p.m.) > > > Review request for accumulo, Josh Elser and Vikram Srivastava. > > > Bugs: ACCUMULO-2383 > https://issues.apache.org/jira/browse/ACCUMULO-2383 > > > Repository: accumulo > > > Description > ------- > > Accumulo now looks for either XML or properties files for the Log4J configuration. Its MonitorLog4jWatcher can now load either properties or XML. > > This code depends on the v3 patch of ACCUMULO-2343; follow the "Depends On" link to jump to that review. > > Note on MonitorLog4jWatcher: Its constructor was calling setDelay() on its superclass, but setDelay() is non-final. I took this opportunity to fix that. > > > Diffs > ----- > > conf/templates/generic_logger.properties PRE-CREATION > conf/templates/monitor_logger.properties PRE-CREATION > server/base/src/main/java/org/apache/accumulo/server/Accumulo.java 4e1eb35 > server/base/src/main/java/org/apache/accumulo/server/watcher/MonitorLog4jWatcher.java ac3426e > server/base/src/test/java/org/apache/accumulo/server/AccumuloTest.java 9366163 > server/base/src/test/java/org/apache/accumulo/server/watcher/MonitorLog4jWatcherTest.java PRE-CREATION > > Diff: https://reviews.apache.org/r/20613/diff/ > > > Testing > ------- > > - New unit tests pass, such as they are. > - Ran servers with XML and with properties configurations on single-node cluster. Observed reloading for properties files (didn't re-test XML). Checked that all logs were being generated. Observed log messages sent from master and tserver to monitor, displayed on web. > - Ran short (50k-hop) randomwalk tests: Security, Concurrent, MultiTable. > > > Thanks, > > Bill Havanki > > --===============3066335337414107326==--