From issues-return-18931-archive-asf-public=cust-asf.ponee.io@kylin.apache.org Thu Aug 2 05:32:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 96469180662 for ; Thu, 2 Aug 2018 05:32:04 +0200 (CEST) Received: (qmail 40265 invoked by uid 500); 2 Aug 2018 03:32:03 -0000 Mailing-List: contact issues-help@kylin.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kylin.apache.org Delivered-To: mailing list issues@kylin.apache.org Received: (qmail 40088 invoked by uid 99); 2 Aug 2018 03:32:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2018 03:32:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5FD37C1C52 for ; Thu, 2 Aug 2018 03:32:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id UUsqkJRq7Hqj for ; Thu, 2 Aug 2018 03:32:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 477455F4AA for ; Thu, 2 Aug 2018 03:32:01 +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 80091E25AA for ; Thu, 2 Aug 2018 03:32:00 +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 3420E27760 for ; Thu, 2 Aug 2018 03:32:00 +0000 (UTC) Date: Thu, 2 Aug 2018 03:32:00 +0000 (UTC) From: "Yuan Weizhao (JIRA)" To: issues@kylin.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KYLIN-3461) "metastore.sh refresh-cube-signature" not updating cube signature as expected MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KYLIN-3461?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1656= 6306#comment-16566306 ]=20 Yuan Weizhao commented on KYLIN-3461: ------------------------------------- Thanks guys! > "metastore.sh refresh-cube-signature" not updating cube signature as expe= cted=20 > -------------------------------------------------------------------------= ----- > > Key: KYLIN-3461 > URL: https://issues.apache.org/jira/browse/KYLIN-3461 > Project: Kylin > Issue Type: Bug > Components: Client - CLI > Affects Versions: v2.3.2 > Reporter: Yuan Weizhao > Assignee: Na Zhai > Priority: Critical > Fix For: v2.4.1, v2.5.0 > > Attachments: build-cube-log.png, log-2-calculate-signature-when-r= efresh-cube-signature.log, log1-calculate-signature-when-building.log, refr= esh-cube-signature-log.png > > > Recently I upgraded kylin from 2.3.1 to 2.3.2, and when I tried to build = a cube, the Web UI told me that my cube signature is inconsistent, and sugg= ested that I use the metastore.sh script to refresh all cube signatures.=C2= =A0 > I did what I was told to, but as I can read from the log, the script did= n't update any cube signature, and I still received the same error message = when I retried to build the cube. > I did some digging on the source code, and add some logging statements, = re-packaged kylin and deployed the more-logging version. I found that when = kylin refreshes cube signatures and build new cube segments, it always chec= k whether the cube signature equals to the calculated signature which is ca= lculated by method org.apache.kylin.cube.model.CubeDesc#calculateSignature(= ). > And as I observed from the log, this method return DIFFERENT RESULT under= the above two occasions! > The Difference lies in that when building cube segments invokes=C2=A0calc= ulateSignature(), it will add "encoding_version" into the "rowkey" json str= ing. -- This message was sent by Atlassian JIRA (v7.6.3#76005)