Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-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 1C1F19B5B for ; Sat, 26 Nov 2011 06:23:26 +0000 (UTC) Received: (qmail 17499 invoked by uid 500); 26 Nov 2011 06:23:25 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 17372 invoked by uid 500); 26 Nov 2011 06:23:24 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 17364 invoked by uid 99); 26 Nov 2011 06:23:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Nov 2011 06:23:22 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of todd@cloudera.com designates 209.85.161.41 as permitted sender) Received: from [209.85.161.41] (HELO mail-fx0-f41.google.com) (209.85.161.41) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Nov 2011 06:23:17 +0000 Received: by faas10 with SMTP id s10so4982089faa.14 for ; Fri, 25 Nov 2011 22:22:56 -0800 (PST) Received: by 10.152.144.202 with SMTP id so10mr22711599lab.9.1322288576116; Fri, 25 Nov 2011 22:22:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.113.162 with HTTP; Fri, 25 Nov 2011 22:22:35 -0800 (PST) In-Reply-To: References: <1322269462.68973.YahooMailNeo@web121706.mail.ne1.yahoo.com> <1322283977.89408.YahooMailNeo@web121712.mail.ne1.yahoo.com> From: Todd Lipcon Date: Fri, 25 Nov 2011 22:22:35 -0800 Message-ID: Subject: Re: Status of 0.92RC To: dev@hbase.apache.org Cc: lars hofhansl Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable In Hadoop we use this in our pom: file:///dev/urandom which also works in JDK6. See HADOOP-7841 On Fri, Nov 25, 2011 at 10:12 PM, Li Pi wrote: > Very, very nice discovery! > > Once I saw the move your mouse around part, I smiled. > > Entropy can also be gathered from other system events, such as network > traffic, so on a production machine, you should always have enough > entropy. So it should be fine to change the test to use urandom. > > On Fri, Nov 25, 2011 at 9:06 PM, lars hofhansl wrot= e: >> Here is something that will boggle your mind: >> After you ran TestHCM often enough it will hang until you move your mous= e around! >> >> No joke... But what sounds like an impossibility is actually related to = the use of SecureRandom. >> SecureRandom uses /dev/random on Linux and that gathers entropy from sys= tem events >> such as network activity, disk activity, keyboard activity, mouse moveme= nt, etc. >> If not enough the entropy is available /dev/random will block until enou= gh entropy is gathered! >> >> When I add this to the command line (via pom.xml) TestHCM never hangs: >> "-Djava.security.egd=3Dfile:/dev/./urandom" >> >> (note that -Djava.security.egd=3Dfile:/dev/urandom does not work for som= e reason on JDK 1.5 or newer, =A0the extra ./ is needed) >> >> >> This instructs the JDK use /dev/urandom for SecureRandom, which unlike /= dev/random will never block, but if not enough >> entropy exists it will generate random numbers of lesser quality... But = for tests we don't care. >> >> >> That explains why tests only time out sometimes... when the system happe= ns to run out of entropy bits when a secure random >> is used. >> >> -- Lars >> >> >> ________________________________ >> From: Stack >> To: dev@hbase.apache.org >> Cc: lars hofhansl >> Sent: Friday, November 25, 2011 7:14 PM >> Subject: Re: Status of 0.92RC >> >> On Fri, Nov 25, 2011 at 6:16 PM, Ted Yu wrote: >>> I then looped TestHCM 4 times and there was no test failure. >>> >> >> Its fine on mac.=A0 On ubuntu: >> >> ------------------------------------------------------------------------= ------- >> Test set: org.apache.hadoop.hbase.client.TestHCM >> ------------------------------------------------------------------------= ------- >> Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: >> 757.578 sec <<< FAILURE! >> testClosing(org.apache.hadoop.hbase.client.TestHCM)=A0 Time elapsed: >> 35.34 sec=A0 <<< FAILURE! >> java.lang.AssertionError >> =A0 =A0 =A0 =A0 at org.junit.Assert.fail(Assert.java:92) >> =A0 =A0 =A0 =A0 at org.junit.Assert.assertTrue(Assert.java:43) >> =A0 =A0 =A0 =A0 at org.junit.Assert.assertFalse(Assert.java:68) >> =A0 =A0 =A0 =A0 at org.junit.Assert.assertFalse(Assert.java:79) >> =A0 =A0 =A0 =A0 at org.apache.hadoop.hbase.client.TestHCM.testClosing(Te= stHCM.java:221) >> =A0 =A0 =A0 =A0 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M= ethod) >> >> .... >> >> Line numbers are off because I'm messing.=A0 Its saying connection 1 is >> closed if I test it just after creating it. >> >> St.Ack >> >>> On Fri, Nov 25, 2011 at 5:39 PM, Ted Yu wrote: >>> >>>> I looped TestHCM#testClosing 5 times on MacBook and didn't see test >>>> failure. >>>> >>>> Stack: >>>> Can you share the test output ? >>>> >>>> Thanks >>>> >>>> >>>> On Fri, Nov 25, 2011 at 5:04 PM, lars hofhansl wr= ote: >>>> >>>>> I added testClosing as part of HBASE-4805, I'll have a look as soon a= s I >>>>> get a chance. >>>>> >>>>> >>>>> >>>>> ________________________________ >>>>> =A0From: Stack >>>>> To: HBase Dev List >>>>> Sent: Friday, November 25, 2011 2:12 PM >>>>> Subject: Status of 0.92RC >>>>> >>>>> I'm having a little difficulty getting all tests to pass. =A0On >>>>> linux/ubuntu, TestHCM (testClosing strange issue) and TestReplication >>>>> are failing for me. =A0On mac osx, it'll build without fail about 50%= of >>>>> the time. =A0I'd like to make it so tests pass all the time before >>>>> cutting the RC. =A0Thats what I'm at these times. >>>>> >>>>> Also, 0.92 build on jenkins has been turned off by Apache >>>>> Infrastructure. =A0It was hanging. =A0Its done this in the past too a= nd >>>>> when it hangs it requires a jenkins reboot which doesn't make Apache >>>>> Infrastructure team too happy. =A0The hang looks to me like a Jenkins >>>>> bug because build hangs before we even checkout src. =A0Am trying to = see >>>>> what can be done to get it going again but thats the story at the mo. >>>>> >>>>> St.Ack >>>>> >>>> >>>> >>> >> > --=20 Todd Lipcon Software Engineer, Cloudera