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 AA46C200B6B for ; Thu, 25 Aug 2016 20:18:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A8B0B160AA5; Thu, 25 Aug 2016 18:18:25 +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 EFE91160AA4 for ; Thu, 25 Aug 2016 20:18:24 +0200 (CEST) Received: (qmail 94903 invoked by uid 500); 25 Aug 2016 18:18:22 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 94706 invoked by uid 99); 25 Aug 2016 18:18:22 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2016 18:18:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 07C502C0152 for ; Thu, 25 Aug 2016 18:18:22 +0000 (UTC) Date: Thu, 25 Aug 2016 18:18:22 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-4482) numUnsuccessfulCheckpointsTriggers is accessed without holding triggerLock MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 25 Aug 2016 18:18:25 -0000 [ https://issues.apache.org/jira/browse/FLINK-4482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15437383#comment-15437383 ] ASF GitHub Bot commented on FLINK-4482: --------------------------------------- GitHub user tedyu opened a pull request: https://github.com/apache/flink/pull/2421 FLINK-4482 numUnsuccessfulCheckpointsTriggers is accessed without holding triggerLock Thanks for contributing to Apache Flink. Before you open your pull request, please take the following check list into consideration. If your changes take all of the items into account, feel free to open your pull request. For more information and/or questions please refer to the [How To Contribute guide](http://flink.apache.org/how-to-contribute.html). In addition to going through the list, please provide a meaningful description of your changes. - [ ] General - The pull request references the related JIRA issue ("[FLINK-XXX] Jira title text") - The pull request addresses only one issue - Each commit in the PR has a meaningful commit message (including the JIRA id) - [ ] Documentation - Documentation has been added for new functionality - Old documentation affected by the pull request has been updated - JavaDoc for public methods has been added - [ ] Tests & Build - Functionality added by the pull request is covered by tests - `mvn clean verify` has been executed successfully locally or a Travis build has passed You can merge this pull request into a Git repository by running: $ git pull https://github.com/tedyu/flink master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/2421.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 #2421 ---- commit 2021f4790715ecb762dbb23438bf0b2b2755845e Author: tedyu Date: 2016-08-25T18:11:44Z FLINK-4482 numUnsuccessfulCheckpointsTriggers is accessed without holding triggerLock ---- > numUnsuccessfulCheckpointsTriggers is accessed without holding triggerLock > -------------------------------------------------------------------------- > > Key: FLINK-4482 > URL: https://issues.apache.org/jira/browse/FLINK-4482 > Project: Flink > Issue Type: Bug > Reporter: Ted Yu > Priority: Minor > > In CheckpointCoordinator#stopCheckpointScheduler() : > {code} > synchronized (lock) { > ... > numUnsuccessfulCheckpointsTriggers = 0; > {code} > triggerLock is not held in the above operation. > See comment for triggerLock earlier in triggerCheckpoint(): > {code} > // we lock with a special lock to make sure that trigger requests do not overtake each other. > // this is not done with the coordinator-wide lock, because the 'checkpointIdCounter' > // may issue blocking operations. Using a different lock than teh coordinator-wide lock, > // we avoid blocking the processing of 'acknowledge/decline' messages during that time. > synchronized (triggerLock) { > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)