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 AAE87F9C4 for ; Fri, 12 Dec 2014 17:03:14 +0000 (UTC) Received: (qmail 18512 invoked by uid 500); 12 Dec 2014 17:03:14 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 18444 invoked by uid 500); 12 Dec 2014 17:03:14 -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 18273 invoked by uid 99); 12 Dec 2014 17:03:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Dec 2014 17:03:14 +0000 Date: Fri, 12 Dec 2014 17:03:14 +0000 (UTC) From: "Rohith (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-2952) Incorrect version check in RMStateStore 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-2952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14244447#comment-14244447 ] Rohith commented on YARN-2952: ------------------------------ +1 for issue, always base major version is considered as 1. But in real use cases, base major version can be greater than 2 or 3 which installation itself will fail. > Incorrect version check in RMStateStore > --------------------------------------- > > Key: YARN-2952 > URL: https://issues.apache.org/jira/browse/YARN-2952 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Jian He > Assignee: Rohith > > In RMStateStore#checkVersion: if we modify tCURRENT_VERSION_INFO to 2.0, it'll still store the version as 1.0 which is incorrect; The same thing might happen to NM store, timeline store. > {code} > // if there is no version info, treat it as 1.0; > if (loadedVersion == null) { > loadedVersion = Version.newInstance(1, 0); > } > if (loadedVersion.isCompatibleTo(getCurrentVersion())) { > LOG.info("Storing RM state version info " + getCurrentVersion()); > storeVersion(); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)