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 C57BF11EC3 for ; Sat, 13 Sep 2014 16:36:58 +0000 (UTC) Received: (qmail 81016 invoked by uid 500); 13 Sep 2014 16:36:58 -0000 Delivered-To: apmail-sentry-commits-archive@sentry.apache.org Received: (qmail 80968 invoked by uid 500); 13 Sep 2014 16:36:58 -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 80958 invoked by uid 99); 13 Sep 2014 16:36:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Sep 2014 16:36:58 +0000 X-ASF-Spam-Status: No, hits=-2001.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 13 Sep 2014 16:36:36 +0000 Received: (qmail 80634 invoked by uid 99); 13 Sep 2014 16:36:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Sep 2014 16:36:34 +0000 Date: Sat, 13 Sep 2014 16:36:34 +0000 (UTC) From: "Prasad Mujumdar (JIRA)" To: commits@sentry.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SENTRY-330) Update Derby schema script to enforce non-null constraint MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SENTRY-330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14132818#comment-14132818 ] Prasad Mujumdar commented on SENTRY-330: ---------------------------------------- [~skyapus@yahoo.com] The patch itself look fine. The problem I think is about testing the change. The unit tests create the backend schema via dataNucleus and not by running the schema script. Would it be possible for you to verify the sentry service behavior with schema created using the scripts ? Perhaps a some new test cases that creates the schema using schemaTool first ? > Update Derby schema script to enforce non-null constraint > --------------------------------------------------------- > > Key: SENTRY-330 > URL: https://issues.apache.org/jira/browse/SENTRY-330 > Project: Sentry > Issue Type: Bug > Affects Versions: 1.5.0 > Reporter: Prasad Mujumdar > Assignee: Ruiming Zhou > Labels: newbie > Fix For: 1.5.0 > > Attachments: SENTRY-330.patch > > > Currently Derby schema script is not consistent with setting bunch of columns as non-null. We need to keep this in sync with other schema scripts. Since derby is used for unit test, this can cause issues to got through unit tests and fail in the real deployments. -- This message was sent by Atlassian JIRA (v6.3.4#6332)