Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9B4631790C for ; Thu, 17 Sep 2015 20:13:10 +0000 (UTC) Received: (qmail 9389 invoked by uid 500); 17 Sep 2015 20:13:05 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 9194 invoked by uid 500); 17 Sep 2015 20:13:05 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 9114 invoked by uid 99); 17 Sep 2015 20:13:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Sep 2015 20:13:05 +0000 Date: Thu, 17 Sep 2015 20:13:05 +0000 (UTC) From: "Varun Saxena (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-4178) [storage implementation] app id as string can cause incorrect ordering 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/YARN-4178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14804414#comment-14804414 ] Varun Saxena commented on YARN-4178: ------------------------------------ ApplicationId is basically a combination of cluster timestamp and a monotonically increasing sequence number/id. We can hence store application id as a sequence of 2 longs or 2 ints in the row key to ensure order is maintained. We can encode it on the way in and decode it as a string on the way out by using ApplicationId#toString. We are however storing app attempts ids and container ids in the same way. They will go into the entity table. > [storage implementation] app id as string can cause incorrect ordering > ---------------------------------------------------------------------- > > Key: YARN-4178 > URL: https://issues.apache.org/jira/browse/YARN-4178 > Project: Hadoop YARN > Issue Type: Sub-task > Components: timelineserver > Affects Versions: YARN-2928 > Reporter: Sangjin Lee > Assignee: Varun Saxena > > Currently the app id is used in various places as part of row keys and in column names. However, they are treated as strings for the most part. This will cause a problem with ordering when the id portion of the app id rolls over to the next digit. > For example, "app_1234567890_100" will be considered *earlier* than "app_1234567890_99". We should correct this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)