From issues-return-1075-apmail-lucy-issues-archive=lucy.apache.org@lucy.apache.org Sat Feb 6 15:05:40 2016 Return-Path: X-Original-To: apmail-lucy-issues-archive@www.apache.org Delivered-To: apmail-lucy-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2B7A91896F for ; Sat, 6 Feb 2016 15:05:40 +0000 (UTC) Received: (qmail 7066 invoked by uid 500); 6 Feb 2016 15:05:40 -0000 Delivered-To: apmail-lucy-issues-archive@lucy.apache.org Received: (qmail 7041 invoked by uid 500); 6 Feb 2016 15:05:40 -0000 Mailing-List: contact issues-help@lucy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@lucy.apache.org Delivered-To: mailing list issues@lucy.apache.org Received: (qmail 6874 invoked by uid 99); 6 Feb 2016 15:05:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Feb 2016 15:05:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DC0352C1F58 for ; Sat, 6 Feb 2016 15:05:39 +0000 (UTC) Date: Sat, 6 Feb 2016 15:05:39 +0000 (UTC) From: "Nick Wellnhofer (JIRA)" To: issues@lucy.apache.org Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Subject: [lucy-issues] [jira] [Resolved] (LUCY-280) Test suite failures because of Windows file deletion semantics [ https://issues.apache.org/jira/browse/LUCY-280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nick Wellnhofer resolved LUCY-280. ---------------------------------- Resolution: Won't Fix If you're hit by this issue, disable the Windows Search Service for your Lucy index directory. > Test suite failures because of Windows file deletion semantics > -------------------------------------------------------------- > > Key: LUCY-280 > URL: https://issues.apache.org/jira/browse/LUCY-280 > Project: Lucy > Issue Type: Bug > Components: Store > Affects Versions: 0.4.2 > Reporter: Nick Wellnhofer > Priority: Minor > > There are at least two tests that fail randomly on Windows due to non-POSIX file deletion semantics. The problem is that Windows doesn't guarantee that a file is deleted immediately if there's another open handle on the file. (I'm still not sure what other processes open handles on random files. It might be virus scanners, but there are also sources that claim that internal Windows services like the Volume Shadow Copy Service are responsible.) > It's possible that only the test suite is affected but I'd prefer a global solution to this problem. I think the best approach is to do something like Cygwin: instead of deleting a file, move it to the recycle bin and set the delete-on-close flag. Unfortunately, it's rather complicated to implement this properly. See the [Cygwin source code|https://github.com/mirror/cygwin/blob/master/winsup/cygwin/syscalls.cc], functions {{unlink_nt}} and {{try_to_bin}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)