Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 21582 invoked from network); 22 Jan 2010 18:16:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jan 2010 18:16:47 -0000 Received: (qmail 56398 invoked by uid 500); 22 Jan 2010 18:16:46 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 56348 invoked by uid 500); 22 Jan 2010 18:16:46 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 56330 invoked by uid 99); 22 Jan 2010 18:16:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jan 2010 18:16:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jan 2010 18:16:44 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2A15B29A0012 for ; Fri, 22 Jan 2010 10:16:23 -0800 (PST) Message-ID: <1919818098.10091264184183170.JavaMail.jira@brutus.apache.org> Date: Fri, 22 Jan 2010 18:16:23 +0000 (UTC) From: "Jean-Daniel Cryans (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Commented: (HBASE-2157) LATEST_TIMESTAMP not replaced by current timestamp in KeyValue In-Reply-To: <1728193699.10021264183941617.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-2157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12803800#action_12803800 ] Jean-Daniel Cryans commented on HBASE-2157: ------------------------------------------- Right the replacement is done in the region server and in this case it gets bypassed. > LATEST_TIMESTAMP not replaced by current timestamp in KeyValue > -------------------------------------------------------------- > > Key: HBASE-2157 > URL: https://issues.apache.org/jira/browse/HBASE-2157 > Project: Hadoop HBase > Issue Type: Bug > Affects Versions: 0.20.2 > Environment: Hadoop 0.20.0 - Hbase 0.20.2 - Java(TM) SE Runtime Environment (build 1.6.0_17-b04) > Reporter: Menno Luiten > > I was trying to bulk load using the new HFileOutputFormat. When using a MapReduce in which map generates {{KeyValue}}s and reduce is equal to KeyValueSortReducer, and using the constructor using (byte[] row, byte[] family, byte[] qualifier, byte[] value), the (undefined) timestamp was inserted as HConstants.LATEST_TIMESTAMP/Long.MAX_VALUE into HBase. This causes all kinds of troubles, but most importantly, while the records were in the table, other MapReduces (using TableInputFormat) and Hbase shell's 'get'-command did not fetch them. Guess there is some sort of filtering of future dates. > As I understood from St.Ack, the LASTEST_TIMESTAMP is supposed to be replaced by System.currentTimeMillis(), but I don't see this reflected in the code of KeyValue, and apparently it did not happen elsewhere; perhaps because there is no actual HBase connection? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.