Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DAAF9200C0D for ; Tue, 17 Jan 2017 05:18:12 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D95DF160B4D; Tue, 17 Jan 2017 04:18:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2C240160B41 for ; Tue, 17 Jan 2017 05:18:12 +0100 (CET) Received: (qmail 46522 invoked by uid 500); 17 Jan 2017 04:18:10 -0000 Mailing-List: contact dev-help@atlas.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.incubator.apache.org Delivered-To: mailing list dev@atlas.incubator.apache.org Received: (qmail 46511 invoked by uid 99); 17 Jan 2017 04:18:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2017 04:18:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 0A599C122E for ; Tue, 17 Jan 2017 04:18:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -5.019 X-Spam-Level: X-Spam-Status: No, score=-5.019 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, 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=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id WVcJFTyA7c2z for ; Tue, 17 Jan 2017 04:18:09 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id F060E5F4A7 for ; Tue, 17 Jan 2017 04:18:07 +0000 (UTC) Received: (qmail 46480 invoked by uid 99); 17 Jan 2017 04:18:07 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2017 04:18:07 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 8BF0E314BA3; Tue, 17 Jan 2017 04:18:06 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============5273314330968840248==" MIME-Version: 1.0 Subject: Re: Review Request 55592: [ATLAS-1463] Mechanism to exclude specified entity attributes from getting stored in audit repository during entity create/update/delete operations From: Madhan Neethiraj To: Apoorv Naik , Madhan Neethiraj , Ashutosh Mestry Cc: Sarath Subramanian , atlas Date: Tue, 17 Jan 2017 04:18:06 -0000 Message-ID: <20170117041806.28415.96297@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Madhan Neethiraj X-ReviewGroup: atlas X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/55592/ X-Sender: Madhan Neethiraj References: <20170116222124.28415.3055@reviews.apache.org> In-Reply-To: <20170116222124.28415.3055@reviews.apache.org> Reply-To: Madhan Neethiraj X-ReviewRequest-Repository: atlas archived-at: Tue, 17 Jan 2017 04:18:13 -0000 --===============5273314330968840248== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/55592/#review161815 ----------------------------------------------------------- repository/src/main/java/org/apache/atlas/repository/audit/EntityAuditListener.java (line 299) With addition of repositoryMaxSiz() in each repository implementation, this method may not be needed. Also, consider moving getAuditExcludeAttributes() to specific repository implementation. Please review. - Madhan Neethiraj On Jan. 16, 2017, 10:21 p.m., Sarath Subramanian wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/55592/ > ----------------------------------------------------------- > > (Updated Jan. 16, 2017, 10:21 p.m.) > > > Review request for atlas, Apoorv Naik, Ashutosh Mestry, Madhan Neethiraj, and Suma Shivaprasad. > > > Bugs: ATLAS-1463 > https://issues.apache.org/jira/browse/ATLAS-1463 > > > Repository: atlas > > > Description > ------- > > Atlas uses HBase as its store for audit repository and when new entities are created the entity definition string along with all its attributes are stored in audit repository. When size of the entity is greater than "hbase.client.keyvalue.maxsize" property then entity creation fails with "KeyValue size too large" exception. > A property needs to be set in atlas-application.properties to specify list of attributes to be excluded from getting stored in audit repo. Also check needs to be made to make sure entity size is not greater than keyvalue max size. > > This patch excludes specified attribute from getting stored in audit repository and also does a size check for max allowed entity size to be stored in the audit repo. > > > Diffs > ----- > > repository/src/main/java/org/apache/atlas/repository/audit/EntityAuditListener.java 958ecaf > repository/src/main/java/org/apache/atlas/repository/audit/EntityAuditRepository.java 417092a > repository/src/main/java/org/apache/atlas/repository/audit/HBaseBasedAuditRepository.java 5099521 > repository/src/main/java/org/apache/atlas/repository/audit/InMemoryEntityAuditRepository.java cf76596 > repository/src/main/java/org/apache/atlas/repository/audit/NoopEntityAuditRepository.java 9f77bfe > typesystem/src/main/java/org/apache/atlas/typesystem/persistence/StructInstance.java 9a9beff > > Diff: https://reviews.apache.org/r/55592/diff/ > > > Testing > ------- > > Tested using POSTMAN REST Client. Created large entities and made sure entities created fine. > > > Thanks, > > Sarath Subramanian > > --===============5273314330968840248==--