Return-Path: X-Original-To: apmail-clerezza-dev-archive@www.apache.org Delivered-To: apmail-clerezza-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED0AFE615 for ; Fri, 15 Mar 2013 12:40:50 +0000 (UTC) Received: (qmail 51604 invoked by uid 500); 15 Mar 2013 12:40:50 -0000 Delivered-To: apmail-clerezza-dev-archive@clerezza.apache.org Received: (qmail 51465 invoked by uid 500); 15 Mar 2013 12:40:48 -0000 Mailing-List: contact dev-help@clerezza.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@clerezza.apache.org Delivered-To: mailing list dev@clerezza.apache.org Received: (qmail 51425 invoked by uid 99); 15 Mar 2013 12:40:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Mar 2013 12:40:47 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of andy.seaborne.apache@gmail.com designates 209.85.215.176 as permitted sender) Received: from [209.85.215.176] (HELO mail-ea0-f176.google.com) (209.85.215.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Mar 2013 12:40:39 +0000 Received: by mail-ea0-f176.google.com with SMTP id h10so1538139eaj.35 for ; Fri, 15 Mar 2013 05:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=Fzq4y9xdtzKPv1bfdeBwd1Y+btUAGDsGIUPWjTiUUvQ=; b=ZYnis1XWnL6A1847+H6pK6V6VKOs47Eih/+KnZvdHpsW0B2Ba/ShZjQX6HkzWwoqCL fC/0fXA0nGo3xqiK6GLXWsBiu+sEk05ZnRg8fiHz1lJZbCuaqKQbz2e5dFH1FAgZy4Bs CORWX2GHQWiLUiP/MruNv69ma/N0KzPhfAk0m5oKirMpFTeuhsmHh8NZ9yrkM9Xf1LIX 1ftDmM5u4Orbgs8TmrRXRLBUxJNVzV4Z1nzwLgLMAJFBnm7CgE9eFtwcyzxB6QnLiMUj 1+mH9KlyBFpGk73mEMmSfPl9K2O5iD6fiDBlYNIT1fOHEJFFiM6hNmc7y8O+JoNcXrnG XPGg== X-Received: by 10.14.182.137 with SMTP id o9mr17805351eem.13.1363351219167; Fri, 15 Mar 2013 05:40:19 -0700 (PDT) Received: from [192.168.0.10] (cpc37-aztw23-2-0-cust35.18-1.cable.virginmedia.com. [94.174.128.36]) by mx.google.com with ESMTPS id m46sm9783973eeo.16.2013.03.15.05.40.17 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Mar 2013 05:40:18 -0700 (PDT) Sender: Andy Seaborne Message-ID: <514316B0.3060103@apache.org> Date: Fri, 15 Mar 2013 12:40:16 +0000 From: Andy Seaborne User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: dev@clerezza.apache.org Subject: Re: Test failures on fresh build References: <5142E069.3090205@xup.nl> <5142E71B.6080504@apache.org> <5142EEDC.6000302@xup.nl> In-Reply-To: <5142EEDC.6000302@xup.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 15/03/13 09:50, Minto van der Sluis wrote: > Thanks Andy for your explanation. Seems indeed like I am hitting that > know bug :-( > > Now I have to go through the hassle to build and test my modifications > on some other OS. :-( indeed. TDB testing islittered with e.g. final String DIR = SystemTDB.isWindows ? ConfigTest.getTestingDirUnique() : ConfigTest.getTestingDirDB() ; > > Regards, > > Minto > > > Op 15-3-2013 10:17, Andy Seaborne schreef: >> On 15/03/13 08:48, Minto van der Sluis wrote: >>> Zooming in on rdf.jena.tdb.storage I see behaviour I noticed before. At >>> least on Windows TdbTcProvider.delete(..) does not properly clean up the >>> given directory. Instead of abusing TdbTcProvider in test cases for >>> doing the clean up I used Apache Common IO. However using Common IO >>> FileUtils.forceDelete(..) results in an exception. It seems like >>> something still keeps holding on to (some of) the files. >> >> I guess you are running with a 64bit JVM. [1] >> >> A "feature" of MS Windows is that you can't delete a memory mapped >> file while the JVM is running even if you detach all the mapped >> segments. "nuisance" would be too polite. >> >> There are workarounds rumoured but the only one I know of that might >> be reliable, and not tricks calling GC() twice in quick succession, is >> to call Sun-JVM specific operations. >> >> TDBs own test suite has to specifically create fresh directories for >> each test on Windows. >> >> Andy >> >> [1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4724038 >> and several others. Once there was a popularity list of bugs and >> features and this was steadily in the top 25. >> >> One of the bug reports was a collecting point for attempts to >> workaround this - but user comments thread does not seem to have >> survived the transitions to the current trackers; at least, I can't >> find them again. >> >> >> > >