Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C23C9200D32 for ; Sun, 22 Oct 2017 01:56:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C0B52160BEE; Sat, 21 Oct 2017 23:56:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 134E4160BD5 for ; Sun, 22 Oct 2017 01:56:11 +0200 (CEST) Received: (qmail 44635 invoked by uid 500); 21 Oct 2017 23:56:11 -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 44624 invoked by uid 99); 21 Oct 2017 23:56:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Oct 2017 23:56:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A74521A0927 for ; Sat, 21 Oct 2017 23:56:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id WRFeSWghuaLv for ; Sat, 21 Oct 2017 23:56:08 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A9D135FB06 for ; Sat, 21 Oct 2017 23:56:07 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id EFA61E1095 for ; Sat, 21 Oct 2017 23:56:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6A95524394 for ; Sat, 21 Oct 2017 23:56:03 +0000 (UTC) Date: Sat, 21 Oct 2017 23:56:03 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-18824) Add meaningful comment to HConstants.LATEST_TIMESTAMP to explain why it is MAX_VALUE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 21 Oct 2017 23:56:12 -0000 [ https://issues.apache.org/jira/browse/HBASE-18824?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D162= 14133#comment-16214133 ]=20 Hudson commented on HBASE-18824: -------------------------------- FAILURE: Integrated in Jenkins build HBase-Trunk_matrix #3927 (See [https:/= /builds.apache.org/job/HBase-Trunk_matrix/3927/]) HBASE-18824 Add meaningful comment to HConstants.LATEST_TIMESTAMP to (chia7= 712: rev 2ee8690b47763fd0ed97d47713b1c516633f597b) * (edit) hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java > Add meaningful comment to HConstants.LATEST_TIMESTAMP to explain why it i= s MAX_VALUE > -------------------------------------------------------------------------= ----------- > > Key: HBASE-18824 > URL: https://issues.apache.org/jira/browse/HBASE-18824 > Project: HBase > Issue Type: Improvement > Reporter: Xiang Li > Assignee: Xiang Li > Priority: Minor > Fix For: 2.0.0 > > Attachments: HBASE-18824.master.000.patch, HBASE-18824.master.001= .patch, HBASE-18824.master.002.patch, HBASE-18824.master.003.patch, HBASE-1= 8824.master.004.patch, HBASE-18824.master.005.patch > > > Thanks to [Jerry and Chia-Ping Tsai's comments|https://issues.apache.org/= jira/browse/HBASE-18824?focusedCommentId=3D16167392&page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel#comment-16167392] to corre= ct my wrong understanding.=20 > The following documentation says that by default(when the timestamp is no= t specified for Put or Delete), system uses the server's {{currentTimeMilli= s}}. > 1. In chapter 27.2.4 Put=20 > bq. Doing a put always creates a new version of a cell, at a certain time= stamp. {color:#205081}By default the system uses the server=E2=80=99s curre= ntTimeMillis{color}, ... > 2. In chapter 27.2.5 Delete > bq. Deletes work by creating tombstone markers. For example, let=E2=80=99= s suppose we want to delete a row. For this you can specify a version, or e= lse {color:#205081}by default the currentTimeMillis is used.{color}... > It seems not consistent with the code. Because in the client side's code,= when timestamp is not specified, HConstants.LATEST_TIMESTAMP is used, whic= h is Long.MAX_VALUE, rather than {{System.currentTimeMillis()}}. > However, the documentation is correct, because on the server side, times= tamp of Put cell with HConstants.LATEST_TIMESTAMP will be replaced with ser= ver's {{currentTimeMillis}}. > So we decide to add more comments to HConstants.LATEST_TIMESTAMP to help = the new comers steer clear of the confusion. -- This message was sent by Atlassian JIRA (v6.4.14#64029)