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 201AB20049B for ; Mon, 14 Aug 2017 11:00:56 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1E5A3164B12; Mon, 14 Aug 2017 09:00:56 +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 5F407164B0C for ; Mon, 14 Aug 2017 11:00:55 +0200 (CEST) Received: (qmail 77954 invoked by uid 500); 14 Aug 2017 09:00:54 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 77942 invoked by uid 99); 14 Aug 2017 09:00:53 -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; Mon, 14 Aug 2017 09:00:53 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C02A1DFC47; Mon, 14 Aug 2017 09:00:53 +0000 (UTC) From: aledsage To: dev@brooklyn.apache.org Reply-To: dev@brooklyn.apache.org References: In-Reply-To: Subject: [GitHub] brooklyn-server issue #791: Sync file system on temp file before moving it. Content-Type: text/plain Message-Id: <20170814090053.C02A1DFC47@git1-us-west.apache.org> Date: Mon, 14 Aug 2017 09:00:53 +0000 (UTC) archived-at: Mon, 14 Aug 2017 09:00:56 -0000 Github user aledsage commented on the issue: https://github.com/apache/brooklyn-server/pull/791 @geomacy not convinced it's worth the effort of trying to mock the `FileDescriptor` to simulate a `SyncFailedException`. If we were doing more than retry + propagate, then maybe it would. But the current logic is pretty simple. One can mock final classes with Mockito v2 (we're on v2.7.12 currently): https://stackoverflow.com/a/40018295/1393883, but you need to add a config file to change the `MockMaker`. I think this is good as-is. Have you tried running the integration tests, as well as the unit tests? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---