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 ED162200B66 for ; Thu, 18 Aug 2016 17:36:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EBA39160AAE; Thu, 18 Aug 2016 15:36: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 402DD160A86 for ; Thu, 18 Aug 2016 17:36:12 +0200 (CEST) Received: (qmail 47086 invoked by uid 500); 18 Aug 2016 15:36:11 -0000 Mailing-List: contact commits-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 commits@atlas.incubator.apache.org Received: (qmail 47077 invoked by uid 99); 18 Aug 2016 15:36:11 -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; Thu, 18 Aug 2016 15:36:11 +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 E6F36C216F for ; Thu, 18 Aug 2016 15:36:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.739 X-Spam-Level: X-Spam-Status: No, score=-3.739 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.519] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id m2bBd83-HvgL for ; Thu, 18 Aug 2016 15:36:10 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id D37DB5F343 for ; Thu, 18 Aug 2016 15:36:09 +0000 (UTC) Received: (qmail 47048 invoked by uid 99); 18 Aug 2016 15:36:09 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2016 15:36:09 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E2A1BDFF87; Thu, 18 Aug 2016 15:36:08 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sumasai@apache.org To: commits@atlas.incubator.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: incubator-atlas git commit: ATLAS-674 Falcon Hook should use timestamps instead of long(ayubkhan via sumasai) Date: Thu, 18 Aug 2016 15:36:08 +0000 (UTC) archived-at: Thu, 18 Aug 2016 15:36:13 -0000 Repository: incubator-atlas Updated Branches: refs/heads/master 1a405f9c1 -> 7b7f4e0b6 ATLAS-674 Falcon Hook should use timestamps instead of long(ayubkhan via sumasai) Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/7b7f4e0b Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/7b7f4e0b Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/7b7f4e0b Branch: refs/heads/master Commit: 7b7f4e0b68637fec82af4443aedcecc63cf10747 Parents: 1a405f9 Author: Suma Shivaprasad Authored: Thu Aug 18 08:35:43 2016 -0700 Committer: Suma Shivaprasad Committed: Thu Aug 18 08:35:43 2016 -0700 ---------------------------------------------------------------------- .../main/java/org/apache/atlas/falcon/event/FalconEvent.java | 8 +------- .../java/org/apache/atlas/falcon/service/AtlasService.java | 3 ++- release-log.txt | 1 + 3 files changed, 4 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/7b7f4e0b/addons/falcon-bridge/src/main/java/org/apache/atlas/falcon/event/FalconEvent.java ---------------------------------------------------------------------- diff --git a/addons/falcon-bridge/src/main/java/org/apache/atlas/falcon/event/FalconEvent.java b/addons/falcon-bridge/src/main/java/org/apache/atlas/falcon/event/FalconEvent.java index e6203ed..0b918ba 100644 --- a/addons/falcon-bridge/src/main/java/org/apache/atlas/falcon/event/FalconEvent.java +++ b/addons/falcon-bridge/src/main/java/org/apache/atlas/falcon/event/FalconEvent.java @@ -28,13 +28,11 @@ import java.util.Date; public class FalconEvent { protected String user; protected OPERATION operation; - protected long timestamp; protected Entity entity; - public FalconEvent(String doAsUser, OPERATION falconOperation, long timestamp, Entity entity) { + public FalconEvent(String doAsUser, OPERATION falconOperation, Entity entity) { this.user = doAsUser; this.operation = falconOperation; - this.timestamp = timestamp; this.entity = entity; } @@ -55,10 +53,6 @@ public class FalconEvent { return operation; } - public Date getTimestamp() { - return new Date(timestamp); - } - public Entity getEntity() { return entity; } http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/7b7f4e0b/addons/falcon-bridge/src/main/java/org/apache/atlas/falcon/service/AtlasService.java ---------------------------------------------------------------------- diff --git a/addons/falcon-bridge/src/main/java/org/apache/atlas/falcon/service/AtlasService.java b/addons/falcon-bridge/src/main/java/org/apache/atlas/falcon/service/AtlasService.java index b2afb03..7482ba7 100644 --- a/addons/falcon-bridge/src/main/java/org/apache/atlas/falcon/service/AtlasService.java +++ b/addons/falcon-bridge/src/main/java/org/apache/atlas/falcon/service/AtlasService.java @@ -30,6 +30,7 @@ import org.apache.falcon.service.FalconService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; + /** * Atlas service to publish Falcon events */ @@ -124,7 +125,7 @@ public class AtlasService implements FalconService, ConfigurationChangeListener try { FalconEvent event = - new FalconEvent(EventUtil.getUser(), operation, System.currentTimeMillis(), entity); + new FalconEvent(EventUtil.getUser(), operation, entity); FalconEventPublisher.Data data = new FalconEventPublisher.Data(event); publisher.publish(data); } catch (Exception ex) { http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/7b7f4e0b/release-log.txt ---------------------------------------------------------------------- diff --git a/release-log.txt b/release-log.txt index e79caa6..31582ed 100644 --- a/release-log.txt +++ b/release-log.txt @@ -3,6 +3,7 @@ Apache Atlas Release Notes --trunk - unreleased INCOMPATIBLE CHANGES: +ATLAS-674 Falcon Hook should use timestamps instead of long(ayubkhan via sumasai) ATLAS-675 Storm Hook should use timetsamps as Date type instead of Long (ayubkhan via sumasai) ATLAS-1122 Change trait edge labels to have trait name alone (sumasai) ATLAS-1060 Add composite indexes for exact match performance improvements for all attributes (sumasai via shwethags)