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 ECAD1200D37 for ; Thu, 26 Oct 2017 07:54:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EB471160BE0; Thu, 26 Oct 2017 05:54:13 +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 395C6160BDA for ; Thu, 26 Oct 2017 07:54:13 +0200 (CEST) Received: (qmail 92643 invoked by uid 500); 26 Oct 2017 05:54:12 -0000 Mailing-List: contact dev-help@gearpump.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@gearpump.incubator.apache.org Delivered-To: mailing list dev@gearpump.incubator.apache.org Received: (qmail 92632 invoked by uid 99); 26 Oct 2017 05:54:12 -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, 26 Oct 2017 05:54:12 +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 7CFC2C4A45 for ; Thu, 26 Oct 2017 05:54:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] 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 VnqkoNJNGDlR for ; Thu, 26 Oct 2017 05:54:09 +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 5E7AC5FD71 for ; Thu, 26 Oct 2017 05:54:08 +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 A54E5E101B for ; Thu, 26 Oct 2017 05:54:06 +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 460CF212FF for ; Thu, 26 Oct 2017 05:54:03 +0000 (UTC) Date: Thu, 26 Oct 2017 05:54:03 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@gearpump.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GEARPUMP-359) The premature OutputWatermark advancing logic in Subscription is not right MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 26 Oct 2017 05:54:14 -0000 [ https://issues.apache.org/jira/browse/GEARPUMP-359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16220004#comment-16220004 ] ASF GitHub Bot commented on GEARPUMP-359: ----------------------------------------- GitHub user huafengw opened a pull request: https://github.com/apache/incubator-gearpump/pull/234 [GEARPUMP-359] Fix OutputWatermark advancing logic in Subscription Be sure to do all of the following to help us incorporate your contribution quickly and easily: - [ ] Make sure the commit message is formatted like: `[GEARPUMP-] Meaningful description of pull request` - [ ] Make sure tests pass via `sbt clean test`. - [ ] Make sure old documentation affected by the pull request has been updated and new documentation added for new functionality. You can merge this pull request into a Git repository by running: $ git pull https://github.com/huafengw/incubator-gearpump subs Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-gearpump/pull/234.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 #234 ---- commit 311e09b28ebe8ac8525b447e831615065dcc541c Author: huafengw Date: 2017-10-26T05:52:39Z [GEARPUMP-359] Fix OutputWatermark advancing logic in Subscription ---- > The premature OutputWatermark advancing logic in Subscription is not right > -------------------------------------------------------------------------- > > Key: GEARPUMP-359 > URL: https://issues.apache.org/jira/browse/GEARPUMP-359 > Project: Apache Gearpump > Issue Type: Bug > Reporter: Huafeng Wang > Assignee: Huafeng Wang > > {{Subscription}} will update processingWatermark when sending a message and update outputWatermark when receiving an Ack message. It will cause prematurely updating the outputWatermark in such scenario: the {{Subscription}} already sent 200 messages to downstream and now the processingWatermark is 200th message's watermark, then it receives the first 100 messages' Ack and it will advance the outputWatermark to 200th message's watermark, not the 100th one, which is wrong. -- This message was sent by Atlassian JIRA (v6.4.14#64029)