From user-return-25969-archive-asf-public=cust-asf.ponee.io@flink.apache.org Fri Feb 15 08:50:37 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D2CCF180651 for ; Fri, 15 Feb 2019 09:50:36 +0100 (CET) Received: (qmail 17669 invoked by uid 500); 15 Feb 2019 08:50:35 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@flink.apache.org Received: (qmail 17658 invoked by uid 99); 15 Feb 2019 08:50:35 -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; Fri, 15 Feb 2019 08:50:35 +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 1063B184950 for ; Fri, 15 Feb 2019 08:50:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.05 X-Spam-Level: ** X-Spam-Status: No, score=2.05 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 hZTvSmA5v40m for ; Fri, 15 Feb 2019 08:50:33 +0000 (UTC) Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 09C255F5B8 for ; Fri, 15 Feb 2019 08:50:33 +0000 (UTC) Received: by mail-pl1-f196.google.com with SMTP id s1so4611713plp.9 for ; Fri, 15 Feb 2019 00:50:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=OOgfmOYjyD5nFSPdIMEOMp+AuGjgcdJfStGjLDzxBHc=; b=h+cLBgT+3fbNM5DFu1Gh2eoEo8VUStjU9fWR4Nba2XmLwfSQHikqus5EG1kx/kQjo3 ijHU2dNiB5ukqMmRRN4PYTNA3Wb7ERx/uMw7PQwscPv6aD90jdNFOYwE4PbUTYSpjqmw 0XmgZVuBOaD8mpkLiG64xKO/8R9iGMW83p6SnHgHSIsKHLXr6zPT7bIVwOxx/hJLVZoE nIanR2BVxXhwZa9GY58QSijkUEdaIEtQG58GP00FX29Q9dMJohAWq78iVcOpD2BWiq/b fCenWh90Ve25LYJWIjHUXkFeWVSqWTRPvhHNjSnsO2TB7r36UfIHde5BZ0aw8CnkBmBs HoVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=OOgfmOYjyD5nFSPdIMEOMp+AuGjgcdJfStGjLDzxBHc=; b=nzcmVRD1JOVxS947K3yD5nxXlAb2kRiOU68csVScPYESAwTNw783vEXQT4o9RCcEYU Jx8GXq3Xb0vpOYITE7CdcCprRFjqfbicHjeCDQzRLqxy3LkuW7OUfyeGRmCZMgNNTanM d+9tNC/JL0pCcmpOBIXKDi3FvVItwmP2gW/BhFMRWguXk5uId3YJAE5J/IAfxraqb48K RBxF6pc6VYOlwUEAZpL/yCDoUdSsAnFVea2CBN17R0KSh2Yf7aBaH3B+Se4YV3FldWPn IDdHawFli9gEAcVp38IqgcryjM3vTdj//ZPzF9gsLq/FGlbyPPAoUK2t2Fac6qgic/2M xDpQ== X-Gm-Message-State: AHQUAuZZBQwtPeryvP5lYfkMcsxNhX85ooBvHSJKlIDE8nHv6W0mNbQm 0WIafl5GQH9DA4cmZllKq2VXNGfrUQ== X-Google-Smtp-Source: AHgI3IbGQYmBqolhQ5lTTLSpmRjKHMJJxiMWsHVVxfjng5bxRFsr3vMfsFG2Y5wRQoiQX+BR1R68rQ== X-Received: by 2002:a17:902:27a8:: with SMTP id d37mr9191862plb.182.1550220631662; Fri, 15 Feb 2019 00:50:31 -0800 (PST) Received: from [10.249.31.0] ([103.129.255.119]) by smtp.gmail.com with ESMTPSA id n73sm6584518pfj.148.2019.02.15.00.50.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Feb 2019 00:50:30 -0800 (PST) From: Paul Lam Content-Type: multipart/alternative; boundary="Apple-Mail=_9C923A1E-4425-40C2-98BD-D75CA5AAD5FD" Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Test FileUtilsTest.testDeleteDirectory failed when building Flink Message-Id: Date: Fri, 15 Feb 2019 16:50:27 +0800 To: user X-Mailer: Apple Mail (2.3445.5.20) --Apple-Mail=_9C923A1E-4425-40C2-98BD-D75CA5AAD5FD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=gb2312 Hi all, Recently we migrate Flink build to a new docker image, after which the = build job always fails with test errors on local file system = permissions.=20 For example: FileUtilsTest.testDeleteDirectory:129 this should fail with = an exception. I notice the following statements in the javadoc of = `java.io.File.setWritable`: > On some platforms it may be possible to start the Java virtual machine = with special privileges that allow it to modify files that disallow = write operations. I think it=A1=AFs what the test is designed for and where the problem = lies.=20 Could anyone help me with this? Thanks a lot! WRT the environment: - Flink version: 1.7.1 - JDK: open jdk 1.8.0_111 - OS version: debian 8 Best, Paul Lam --Apple-Mail=_9C923A1E-4425-40C2-98BD-D75CA5AAD5FD Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=gb2312
Hi all,

Recently we migrate Flink build to a new docker image, after = which the build job always fails with test errors on local file system = permissions. 

For example: FileUtilsTest.testDeleteDirectory:129 = this should fail with an exception.

I= notice the following statements in the = javadoc of `java.io.File.setWritable`:

> On some = platforms it may be possible to start the Java virtual machine with = special privileges that allow it to modify files that disallow write = operations.

I think it=A1=AFs what the test is designed for and where the = problem lies. 

Could anyone help me with this? Thanks a lot!

WRT the = environment:

- = Flink version: 1.7.1
- JDK: open jdk 1.8.0_111
- OS version: debian = 8

Best,
Paul = Lam

= --Apple-Mail=_9C923A1E-4425-40C2-98BD-D75CA5AAD5FD--