Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 85195 invoked from network); 25 May 2010 19:42:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 May 2010 19:42:55 -0000 Received: (qmail 27238 invoked by uid 500); 25 May 2010 19:42:55 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 27211 invoked by uid 500); 25 May 2010 19:42:55 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 27203 invoked by uid 500); 25 May 2010 19:42:55 -0000 Delivered-To: apmail-hadoop-hbase-issues@hadoop.apache.org Received: (qmail 27200 invoked by uid 99); 25 May 2010 19:42:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 May 2010 19:42:55 +0000 X-ASF-Spam-Status: No, hits=-1463.8 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 May 2010 19:42:55 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4PJgYHx027981 for ; Tue, 25 May 2010 19:42:34 GMT Message-ID: <29899480.42781274816554805.JavaMail.jira@thor> Date: Tue, 25 May 2010 15:42:34 -0400 (EDT) From: "HBase Review Board (JIRA)" To: hbase-issues@hadoop.apache.org Subject: [jira] Commented: (HBASE-2578) Add ability for tests to override server-side timestamp setting (currentTimeMillis) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-2578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12871332#action_12871332 ] HBase Review Board commented on HBASE-2578: ------------------------------------------- Message from: "Todd Lipcon" ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://review.hbase.org/r/83/ ----------------------------------------------------------- (Updated 2010-05-25 12:40:01.904248) Review request for hbase. Changes ------- Adding bug field so this shows up on JIRA Summary ------- HBASE-2578 - Add ability for tests to override server-side timestamp setting (currentTimeMillis). The solution in this patch ensures that tests use a different timestamp with a minimal change to the production code paths. One question I would like to know is whether the change that was made to HRegion.FIXED_OVERHEAD would cause any other side effects. This addresses bug HBASE-2578. http://issues.apache.org/jira/browse/HBASE-2578 Diffs ----- src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java 287cd48 src/main/java/org/apache/hadoop/hbase/util/DefaultEnvironmentEdge.java PRE-CREATION src/main/java/org/apache/hadoop/hbase/util/EnvironmentEdge.java PRE-CREATION src/main/java/org/apache/hadoop/hbase/util/IncrementingEnvironmentEdge.java PRE-CREATION src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java d3716d6 src/test/java/org/apache/hadoop/hbase/util/TestDefaultEnvironmentEdge.java PRE-CREATION src/test/java/org/apache/hadoop/hbase/util/TestIncrementingEnvironmentEdge.java PRE-CREATION Diff: http://review.hbase.org/r/83/diff Testing ------- Thanks, Daniel > Add ability for tests to override server-side timestamp setting (currentTimeMillis) > ----------------------------------------------------------------------------------- > > Key: HBASE-2578 > URL: https://issues.apache.org/jira/browse/HBASE-2578 > Project: HBase > Issue Type: Improvement > Reporter: Jonathan Gray > Assignee: Daniel Ploeg > Attachments: HBASE-2578.txt > > > Many of our tests use client APIs which do not set explicit stamps. This creates weird timing issues with tests running on different systems because sometimes a set of operations happens in the same millisecond and other times they do not. > We should have a way for a test to specify it's own way of generating the timestamps (for example, could always increment by 1 ensuring forward progression in time). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.