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 B748C200CF8 for ; Thu, 14 Sep 2017 12:58:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B675A1609CD; Thu, 14 Sep 2017 10:58:05 +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 06F6A1609CC for ; Thu, 14 Sep 2017 12:58:04 +0200 (CEST) Received: (qmail 7178 invoked by uid 500); 14 Sep 2017 10:58:03 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 7169 invoked by uid 99); 14 Sep 2017 10:58:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Sep 2017 10:58:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 03E4C18FA4A for ; Thu, 14 Sep 2017 10:58:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id nuJy8Bu82Z1r for ; Thu, 14 Sep 2017 10:58:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id D77D65F19D for ; Thu, 14 Sep 2017 10:58:00 +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 50E4EE002C for ; Thu, 14 Sep 2017 10:58: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 1205925381 for ; Thu, 14 Sep 2017 10:58:00 +0000 (UTC) Date: Thu, 14 Sep 2017 10:58:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: commits@beam.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BEAM-2467) KinesisIO watermark based on approximateArrivalTimestamp MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 14 Sep 2017 10:58:05 -0000 [ https://issues.apache.org/jira/browse/BEAM-2467?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16166= 076#comment-16166076 ]=20 ASF GitHub Bot commented on BEAM-2467: -------------------------------------- GitHub user pawel-kaczmarczyk opened a pull request: https://github.com/apache/beam/pull/3851 [BEAM-2467] Kinesis source watermark based on approximateArrivalTimesta= mp Follow this checklist to help us incorporate your contribution quickly = and easily: =20 - [X] Make sure there is a [JIRA issue](https://issues.apache.org/jira= /projects/BEAM/issues/) filed for the change (usually before you start work= ing on it). Trivial changes like typos do not require a JIRA issue. Your = pull request should address just this issue, without pulling in other chang= es. - [X] Each commit in the pull request should have a meaningful subject= line and body. - [X] Format the pull request title like `[BEAM-XXX] Fixes bug in Appr= oximateQuantiles`, where you replace `BEAM-XXX` with the appropriate JIRA i= ssue. - [X] Write a pull request description that is detailed enough to unde= rstand what the pull request does, how, and why. - [X] Run `mvn clean verify` to make sure basic checks pass. A more th= orough check will be performed on your pull request automatically. - [ ] If this contribution is large, please file an Apache [Individual= Contributor License Agreement](https://www.apache.org/licenses/icla.pdf). =20 --- You can merge this pull request into a Git repository by running: $ git pull https://github.com/ocadotechnology/incubator-beam kinesis_wa= termark Alternatively you can review and apply these changes as the patch at: https://github.com/apache/beam/pull/3851.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3851 =20 ---- commit 7757ca61fb4b392469ebfd0d378cd7a61f46ae48 Author: Pawel Kaczmarczyk Date: 2017-09-14T10:52:16Z [BEAM-2467] Kinesis source watermark based on approximateArrivalTimesta= mp ---- > KinesisIO watermark based on approximateArrivalTimestamp > -------------------------------------------------------- > > Key: BEAM-2467 > URL: https://issues.apache.org/jira/browse/BEAM-2467 > Project: Beam > Issue Type: Improvement > Components: sdk-java-extensions > Reporter: Pawe=C5=82 Kaczmarczyk > Assignee: Pawe=C5=82 Kaczmarczyk > > In Kinesis we can start reading the stream at some point in the past duri= ng the retention period (up to 7 days). With current approach for setting r= ecord's timestamp and watermark (both are always set to current time, i.e. = Instant.now()), we can't observe the actual position in the stream. > So the idea is to change this behaviour and set the record timestamp base= d on the [ApproximateArrivalTimestamp|http://docs.aws.amazon.com/kinesis/la= test/APIReference/API_Record.html#Streams-Type-Record-ApproximateArrivalTim= estamp]. Watermark will be set accordingly to the last read record's timest= amp.=20 > ApproximateArrivalTimestamp is still some approximation and may result in= having records with out-of-order timestamp's which in turn may result in s= ome events marked as late. This however should not be a frequent issue and = even if it happens it should be a matter of milliseconds or seconds so can = be handled even with a tiny allowedLateness setting -- This message was sent by Atlassian JIRA (v6.4.14#64029)