Return-Path: X-Original-To: apmail-sentry-commits-archive@minotaur.apache.org Delivered-To: apmail-sentry-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED98C18176 for ; Wed, 17 Feb 2016 18:11:27 +0000 (UTC) Received: (qmail 7260 invoked by uid 500); 17 Feb 2016 18:11:24 -0000 Delivered-To: apmail-sentry-commits-archive@sentry.apache.org Received: (qmail 7219 invoked by uid 500); 17 Feb 2016 18:11:24 -0000 Mailing-List: contact commits-help@sentry.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sentry.incubator.apache.org Delivered-To: mailing list commits@sentry.incubator.apache.org Received: (qmail 7210 invoked by uid 99); 17 Feb 2016 18:11:24 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2016 18:11:24 +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 5138DC0DA6 for ; Wed, 17 Feb 2016 18:11:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.549 X-Spam-Level: X-Spam-Status: No, score=-3.549 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.329] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 9u8ZikUxyCfW for ; Wed, 17 Feb 2016 18:11:23 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with SMTP id 4C372615C6 for ; Wed, 17 Feb 2016 07:31:19 +0000 (UTC) Received: (qmail 50033 invoked by uid 99); 17 Feb 2016 07:31:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2016 07:31:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 44CBB2C1F6B for ; Wed, 17 Feb 2016 07:31:18 +0000 (UTC) Date: Wed, 17 Feb 2016 07:31:18 +0000 (UTC) From: "Hadoop QA (JIRA)" To: commits@sentry.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SENTRY-1066) Sentry oracle upgrade script failed with ORA-0955 duplicate name issue 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/SENTRY-1066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15150040#comment-15150040 ] Hadoop QA commented on SENTRY-1066: ----------------------------------- Here are the results of testing the latest attachment https://issues.apache.org/jira/secure/attachment/12788176/SENTRY-1066.1.patch against master. {color:green}Overall:{color} +1 all checks pass {color:green}SUCCESS:{color} all tests passed Console output: https://builds.apache.org/job/PreCommit-SENTRY-Build/1212/console This message is automatically generated. > Sentry oracle upgrade script failed with ORA-0955 duplicate name issue > ---------------------------------------------------------------------- > > Key: SENTRY-1066 > URL: https://issues.apache.org/jira/browse/SENTRY-1066 > Project: Sentry > Issue Type: Bug > Affects Versions: 1.5.1, 1.7.0 > Reporter: Anne Yu > Assignee: Anne Yu > Priority: Blocker > Attachments: SENTRY-1066.0.patch, SENTRY-1066.1.patch > > > We've seen ORA-0955 duplicate name issue while running Sentry upgrade scripts. > Running Oracle 11g. We eventually tracked it to /opt/cloudera/parcels/CDH/lib/sentry/scripts/sentrystore/upgrade/004-SENTRY-74.oracle.sql: > {code:sql} > ALTER TABLE SENTRY_DB_PRIVILEGE DROP CONSTRAINT "SENTRY_DB_PRIV_PRIV_NAME_UNIQ"; > ALTER TABLE SENTRY_DB_PRIVILEGE ADD CONSTRAINT "SENTRY_DB_PRIV_PRIV_NAME_UNIQ" UNIQUE ("SERVER_NAME","DB_NAME","TABLE_NAME","COLUMN_NAME","URI","ACTION","WITH_GRANT_OPTION"); > {code} > Although constraint was dropped, it fails to re-add, as there was an implicit index added with same name as well (expected behavior according to docs: http://docs.oracle.com/cd/B19306_01/server.102/b14200/clauses002.htm See: "Unique Constraints"). > Dropping the index allowed us to finish upgrading the schema successfully. -- This message was sent by Atlassian JIRA (v6.3.4#6332)